Color Name and Hex Finder | Find any color name or hex code
Find the hex, RGB and HSL values for any color name, or the nearest named color for any code. Includes shades, tints and WCAG contrast ratios for all 148 CSS colors.
Every named CSS colour
All 148 colour names built into CSS, with their hex and RGB values. Click any row to open it above.
How hex colour codes work
A hex code is just three numbers written in base 16: how much red, how much green and how much blue, each from 00 to FF. So #FFD700 means red at full strength, green at 215 out of 255, and no blue at all, which your eye reads as gold. The two-digit pairs are the only thing that matters, which is why #FFF and #FFFFFF are both white.
Hex, RGB and HSL compared
All three describe the same colours, they just carry different information. Hex is compact and the usual choice in CSS. RGB is the same numbers in decimal, which is easier to compute with. HSL separates hue from saturation and lightness, so it is far easier to build a palette by hand: keep the hue, change the lightness, and you have a matching shade.
Why contrast matters
Text has to stand out from its background enough to be read by people with low vision or on a dim screen. The accessibility guidelines set a ratio of 4.5 to 1 for normal text (AA) and 7 to 1 for the stricter AAA level. Large text is allowed 3 to 1. This tool works out the ratio against both white and black so you can see immediately which one to put on top.
Useful to know
- CSS has 148 named colours, and several are duplicates: grey and gray, and aqua and cyan, are identical.
- Shorthand hex only works when each pair repeats, so #FFCC00 can be written #FC0 but #FFD700 cannot be shortened.
- Adding two more hex digits sets transparency, so #FFD70080 is gold at about half opacity.
- To build a palette, keep the hue in HSL and vary only the lightness. The colours will always look related.
Frequently asked questions
#FFD700, which is rgb(255, 215, 0). It is a bright yellow-gold rather than a metallic tone, since a flat colour cannot reproduce the sheen of real gold. For a deeper metallic look, designers usually pair it with darker golds such as #B8860B, which CSS calls darkgoldenrod.What is the hex code for a colour?
#FFD700, coral is #FF7F50 and teal is #008080. Every result also shows shades, tints and the contrast ratio against black and white.