Colour picker
Mix a colour from red, green and blue and see its rgb(), its hex code and the bits of each channel.
Screens make every colour by mixing red, green and blue light. Each of the three channels is one byte, a number from 0 to 255, so a colour is just three bytes.
In CSS you can write the same colour as rgb(255, 209, 102) or as a hex code like #ffd166. Hex is each byte written in base 16: ff is 255, d1 is 209 and 66 is 102.
Things to try
- Make pure red, then pure green, then pure blue. What are the three numbers each time?
- Set all three sliders to the same number. What colours do you get?
- Type a hex code such as #7ee787 and see where the sliders go.
- Look at the binary under each slider. What does 11111111 mean for a channel?