Color Name Finder

Find the nearest named CSS color for any hex.

Frequently Asked Questions

How is the color distance calculated? +
The tool uses Euclidean distance in RGB color space. It calculates the square root of the sum of squared differences for each channel (red, green, blue). A distance of 0 means an exact match.
How many named CSS colors are there? +
There are 148 named CSS colors defined in the CSS Color Level 4 specification. These range from common names like "red" and "blue" to specific ones like "cornflowerblue" and "lemonchiffon".
Why does my color match a name that looks different? +
With only 148 named colors covering the entire RGB spectrum (16.7 million colors), most colors will map to a name that is not a perfect match. The distance score indicates how close the match is. Lower scores mean closer matches.
Can I use the named color directly in CSS? +
Yes, all 148 named colors are valid CSS values. You can use them in any CSS property that accepts a color, like "color: cornflowerblue" or "background: salmon". They are supported in all modern browsers.
Copied!