How to use it
A HEX code is six hexadecimal digits: two each for red, green and blue, from 00 to FF (0–255).
#1E90FF → R = 0x1E = 30, G = 0x90 = 144, B = 0xFF = 255WCAG contrast: at least 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text.
CMYK is a simple mathematical conversion; for exact print colors use your printer’s profile.
Worked example
#0F6E56 = rgb(15, 110, 86) = hsl(165, 76%, 25%), with about 6.2:1 contrast on white — fine for text (AA).
Frequently asked questions
HEX vs RGB?
They describe the same color — HEX in base 16, RGB in decimal.
What is an 8-digit HEX code?
The last two digits are alpha (opacity), e.g. #0F6E5680 is 50% opaque.
Does it accept shorthand?
Yes, #FFF means #FFFFFF.