๐Ÿ’ป Computers

Screen colors: red, green and blue

Three circles of red, green and blue light overlapping to make yellow, cyan, magenta and white

๐Ÿ“– In short

Look at a screen through a magnifying glass and you'll discover a secret: every dot is made of three tiny lights, red, green and blue. When the computer changes how strong each one is, millions of colors appear, from sunshine yellow to flower purple.

๐Ÿคฉ Did you know?

  • With just three lights, a screen can show more than 16 million colors.
  • A phone screen has millions of tiny dots, and each dot has three lights.
  • Our eyes have special cells for red, green and blue, which is why engineers chose these three colors.
  • If you put a tiny drop of water on a screen, you'll see the three lights magnified underneath!

๐Ÿ”Ž Find out more

๐ŸŒŸ Mixing light isn't like mixing paint

When painting, mixing all the colors gives a dark color. With light it's the opposite: red, green and blue together at full strength make white! And red with green makes yellow, which surprises a lot of people.

๐Ÿ” Black means the light is off

When the computer wants to draw a black dot, it switches off its three lights. That's why a switched-off screen is black.

๐Ÿ’ก Colors as numbers

A computer stores every color as three numbers: how much red, green and blue, each from 0 to 255. So (255, 0, 0) is pure red and (255, 255, 0) is yellow.

๐ŸŽฏ Even in cameras

A camera works the same way but in reverse: it measures how much red, green and blue light there is at every point of the picture and stores it as numbers.

๐Ÿงญ Screens and printers

A printer works differently: it doesn't light up but mixes inks: cyan, magenta, yellow and black. That's why a printed picture's colors can look slightly different from the screen.

๐ŸŒˆ Colors as short codes

Designers sometimes write colors as codes like #FF0000 for red: one pair for red, one for green and one for blue. They're the same three numbers written a shorter way.

๐Ÿ“Š See how it works

A screen picture is made of dots, and each dot has three lights: red, green and blue
Every dot on the screen has three tiny lights: red, green and blue.
Red, green and blue light together make white, but paints mixed together make a dark color
Mixing light isn't like mixing paint: the three lights make white, while paints make a dark color.

๐Ÿ“š Key words

Pixels
The smallest dot in a picture
RGB
Red, green and blue
Resolution
The number of pixels in a screen or picture

๐Ÿงช Try it at home

Look at a screen with a magnifying glass, or put a tiny drop of water on an old phone's screen with your parents' permission, and look for the red, green and blue dots. Then wipe the water off!

๐Ÿงฉ Test yourself

1 Which three colors make all the colors on a screen?

2 What do red light and green light make together?

๐Ÿ“š Read next

๐ŸŽฎ Try it yourself