Colors are displayed combining RED, GREEN, and BLUE light.
Colors are defined using a hexadecimal (hex) notation for the Red, Green, and Blue values (RGB).
The lowest value for each light source is 0 (hex 00). The highest value is 255 (hex FF).
Hex values are written as # followed by either three or six hex characters.
Three-digit notations (#rgb) are automatically converted to six digits (#rrggbb):
| Color | Color 3 digit HEX | Color 6 digit HEX | Color RGB |
|---|---|---|---|
| #F00 | #FF0000 | rgb(255,0,0) | |
| #0F0 | #00FF00 | rgb(0,255,0) | |
| #00F | #0000FF | rgb(0,0,255) | |
Shades of grey (from black to white) are defined using equal values for all the 3 light sources:
| Color | Color 3 digit HEX | Color 6 digit HEX | Color RGB |
|---|---|---|---|
| #000 | #000000 | rgb(0,0,0) | |
| #888 | #888888 | rgb(136,136,136) | |
| #FFF | #FFFFFF | rgb(255,255,255) |