How to Name Colors in a Design System
Choose color naming conventions that scale, avoid confusing literal names, and keep your design tokens understandable across teams.
Read GuideDesigner
Find the closest CSS color name for any HEX or RGB code, with the top 5 matches.
Designer
Paste a code like #4A7FBF into this color name finder and it matches the color to the nearest of the 148 standard CSS color names, whether you start from HEX, RGB, HSL or another named color. Alongside the best match you see the five closest names with their distance from your color, so you can judge how good each match really is. It is useful for writers, designers and developers who need a readable name for a color code, whether for alt text, documentation or a quick CSS value.
Treat the result as a label, not a replacement: unless the distance is zero, swapping your HEX code for the named color will change the color on screen. Use the name to communicate, for example in alt text or a design token description, and keep the original HEX value in your code. If the closest distance is large, your color sits between named colors, so describe it with a modifier such as muted, deep or pale.
FAQ
Enter the HEX code into a color name finder, which compares it with a list of named colors and returns the closest one. This tool uses the 148 CSS named colors, so every result is also a keyword you can use in a stylesheet. If the match is not exact, the distance value tells you how far off it is.
Each color can be treated as a point in a three-dimensional color space, such as red, green and blue values. The tool measures the distance between your color and every named color, then sorts them from closest to farthest. A distance of zero means your color is exactly a named color.
CSS defines 148 named colors, from aliceblue to yellowgreen. A few are duplicates spelled two ways, such as gray and grey, or aqua and cyan. Every modern browser supports all of them, and the names are case-insensitive.
There are about 16.7 million possible HEX colors but only 148 CSS names, so most colors fall between named ones. The name finder gives you the nearest label, which is good for describing the color. For exact reproduction, always keep the original HEX, RGB or HSL value.
Learn more
Choose color naming conventions that scale, avoid confusing literal names, and keep your design tokens understandable across teams.
Read GuideLearn how to pick a color from an image and get the exact HEX code, why JPEG and anti-aliasing shift values, and which browser and OS color pickers to trust.
Read GuideA practical guide to HTML color names: the 16 originals, all 148 CSS named colors, gray vs grey, aqua vs cyan, and when to use names or design tokens.
Read Guide