Color Picker

Pick a colour and see it the way a PRG32 program writes it: RGB24 (8 bits for each of red, green and blue) and RGB565, the format of the PRG32 screen, in hexadecimal, decimal and binary.

Choose a colour

Type six hexadecimal digits, for example #FFCC00.

The values

as chosen (RGB24)
on the PRG32 screen (RGB565)
The same colour written in two formats and three number bases.
HexadecimalDecimalBinary
RGB24
RGB565

Channels:

In C or assembly:

Nearest PRG32 named colour:

How it works

RGB24 keeps 8 bits for each colour: red is the top 8 bits, then green, then blue. 0xFF0000 is pure red, 0xFFFFFF white.

RGB565 fits a colour in 16 bits: the top 5 bits of red, the top 6 of green (eyes see green best) and the top 5 of blue. The lower bits are dropped, so nearby colours can look the same on the PRG32: compare the two swatches.