Your definition of colour is true when the light is white light like sunlight which contains all the colours
But white light is nothing but a mixture of red, blue and green light, these are the primary colours. The other colours are obtained by mixing specific quantities of these colours
On a screen there are pixels and pixels has 3 colours red, green and blue. Suppose you want to get purple colour then the red light and blue light are on but the green light is off, so red and blue mix and give you purple colour.
Latest Answers