← All code tables / Numbers & science

RGB & Hex Colour Codes

Common named colours with hexadecimal #RRGGBB and decimal RGB channel values for visual and computer-code puzzles.

ColourSwatchHexRGB (0–255)
Black#0000000, 0, 0
White#FFFFFF255, 255, 255
Red#FF0000255, 0, 0
Green (lime)#00FF000, 255, 0
Blue#0000FF0, 0, 255
Yellow#FFFF00255, 255, 0
Cyan#00FFFF0, 255, 255
Magenta#FF00FF255, 0, 255
Gray#808080128, 128, 128
Silver#C0C0C0192, 192, 192
Maroon#800000128, 0, 0
Olive#808000128, 128, 0
Navy#0000800, 0, 128
Teal#0080800, 128, 128
Purple#800080128, 0, 128
Orange#FFA500255, 165, 0
Hex RGB consists of three 8-bit channels: RR, GG and BB. For example, #FF8000 is (255,128,0). Naming conventions can be ambiguous; use the numeric values as the actual data.
Geocaching tip: Color order may reveal a hidden message; convert RGB channels or hex pairs separately when clues suggest it.