Hex Color Name Finder
Paste any hex color code or pick a color, and this tool finds the closest named CSS color, shows the exact RGB distance between your color and the match, and lists the next closest alternatives with their hex values.
Closest named color
—
—
Next closest alternatives
| Swatch | Name | Hex | Distance |
|---|
How to use
- Type a hex code such as #7f9ac0, use the 3-digit shorthand, or pick a color from the color picker.
- The closest CSS named color appears instantly with the distance score and the per-channel delta.
- Copy the name or hex of the match or any alternative straight from the table.
Note: Matching uses Euclidean distance in RGB space across all 147 standard CSS named colors. A distance of 0 means your color has an exact named match. This is an estimate for design work.
Tips
- Use the matched name in CSS when readability matters, and the hex when exact color fidelity matters.
- If two alternatives have very close distances, try both — screen calibration changes which looks closer.
- For brand work, always check the match on a real device before shipping.
Frequently Asked Questions (FAQ)
How does the hex color name finder work?
Enter any hex code and the tool compares it against all 147 CSS named colors by RGB distance, then shows the nearest match plus close alternatives.
What does the distance value mean?
The distance is the Euclidean distance between the two colors in RGB space; a lower value means a closer visual match.
Does it work with short hex codes like #abc?
Yes. Short 3-digit codes are expanded automatically, and you can also pick a color from the color picker.
How many color names does it search?
All 147 CSS named colors. It shows the nearest match plus the next closest alternatives.