As I mentioned before, white light is made from 3 main colours that mix together to get the rest of the spectrum. But what if you blocked one of these colours.
If you put a red filter on white light, only red and will go through. The same principle works with green and blue light.