Color Name Finder

Find the nearest CSS color name for any HEX code. Browse 141 CSS named colors.

Nearest CSS Color Name
mediumpurple
Your HEX
#7C3AED
Nearest HEX
#9370DB
Delta
38
All 141 CSS Named Colors
Click any color to copy its HEX code
Who this tool is for:

Best for: Putting a human name to a hex code from a design handoff, and finding the closest named colour when a client asks what to call it

Limitations: Returns the nearest named colour rather than an exact match, and it covers common web and CSS names rather than Pantone references

Best suited for: Designers writing documentation who need to describe a colour in words, not codes

Where the Names Come From

The tool's list, CSS_COLORS in the site's shared app.js, has 141 names. The named color table in CSS Color 4 has 148: the tool leaves out the seven "grey" spellings (such as grey and slategrey), which the spec lists beside the "gray" ones with the same values. Every hex in the tool matches the spec. Aqua and cyan share #00FFFF, and fuchsia and magenta share #FF00FF, so the 141 names cover 139 colors. The spec says 16 names came from the VGA palette and most of the rest from one version of the X11 color system, and that the names are "not even internally consistent": darkgray is lighter than gray.

How Nearest-Name Matching Works

findNearestCss treats each color as a point with red, green and blue coordinates from 0 to 255 and picks the name at the shortest straight-line distance. Delta is that distance rounded to a whole number; 0 means an exact match. On a tie the first name in the list wins, which is why #00FFFF shows aqua rather than cyan.

Your hexNearest nameIts hexDelta
#808081gray#8080801
#FDE68Akhaki#F0E68C13
#64748Bslategray#70809018
#7C3AEDblueviolet#8A2BE223
#0F766Eteal#00808025
#3B82F6royalblue#4169E133

Computed with this tool's own code (method). The last row is where a name misleads: royalblue has green 105 and blue 225 against 130 and 246, and is only the least distant of 141 names. RGB distance is also not perceptual: it weighs a step in blue the same as a step in green, although in the WCAG luminance formula green counts 0.7152 and blue 0.0722.

The Color Picker uses the same CSS_COLORS list and the same findNearestCss code, both kept in the shared app.js, so it shows the same name as this page.

Frequently Asked Questions

From the named color table in CSS Color 4. The spec lists 148 names; this tool's list has 141 because it leaves out the seven grey spellings, such as grey and slategrey, which have the same values as gray and slategray. Every hex value in the tool matches the spec.
The CSS Color 4 named color table has 148 entries, counting both gray and grey spellings. Two further special values, transparent and currentcolor, are defined in their own sections of the spec, so this tool does not list them.
Yes. CSS Color 4 says the names are accepted anywhere a color is, and are ASCII case-insensitive, so coral and Coral both work. The same spec says their use is not encouraged, because the names are unevenly spread and inconsistent: darkgray is lighter than gray.
It is the closest of 141 names by straight-line distance in RGB, shown as Delta. #808081 is 1 from gray, but #7C3AED is 23 from blueviolet and #3B82F6 is 33 from royalblue, so a large Delta means a neighbor, not a match. RGB distance does not model how different two colors look.
Yes. Both tools use the same list, CSS_COLORS in the site's shared app.js, and the same findNearestCss code, so they give the same name for the same color. The Color Picker shows only the name; this page also shows the named color's hex and the distance.
Related Tools

Get fresh reads straight to your inbox

Get notified when we publish new articles. Unsubscribe anytime.