Colour picker

Knowledge Videos

Short animated explainers, organised by subject.

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

From the videos