🎨

Color Name Finder

Find the nearest listed CSS color name to an opaque HEX color, compare its RGB distance and copy the named color in HEX, RGB or HSL.

Advertisement

Keep typing the HEX draft; a valid #fff expands in the result. Leaving the field normalizes valid input. Incomplete or invalid input clears the result.

Enter exactly 3 or 6 hexadecimal digits, optionally preceded by #. Alpha is unsupported.

Nearest is the smallest Euclidean distance in RGB8: √((R₁−R₂)²+(G₁−G₂)²+(B₁−B₂)²). This is not a perceptual or universal naming model. Equal-distance ties retain dictionary order; synonymous CSS names may share a code.

No listed color matches these filters.

Copied

Copy failed. Select the result and copy it manually.

Embed this tool on your website

Use whole pixel dimensions from 1 to 4096.

× px (1–4096)

                        

💡 Integration Tip

Copy the embed code and paste it into your website HTML. The responsive version adapts to all screen sizes automatically.

2 ratings
✓

Method and interpretation

Nearest is the smallest Euclidean distance in RGB8: √((R₁−R₂)²+(G₁−G₂)²+(B₁−B₂)²). This is not a perceptual or universal naming model. Equal-distance ties retain dictionary order; synonymous CSS names may share a code.

HEX accepts 3 or 6 digits with optional # and no alpha. HSL is calculated from RGB channels. CSS identifiers such as Red and White remain identifiers in every interface language.

Matching uses unrounded distance. Distance displays two decimals, and HSL displays whole degrees and percentages. A distance of 0 means identical RGB bytes; a small displayed rounded number need not mean exact identity.

Popular Tools

No more tools to show
Explore All Tools

About Color Name Finder

Find the nearest listed CSS color name to an opaque HEX color, compare its RGB distance and copy the named color in HEX, RGB or HSL.

Use the picker for one color or browse the retained CSS keyword list. Search matches the English CSS identifier or HEX; categories group the list. Selecting a name returns to the picker. The copy cards describe the matched named color, which may differ from your input.

#ff0000 matches Red at distance 0: rgb(255, 0, 0) and hsl(0, 100%, 50%). #fff matches White. xyz clears the result; no-such-color-demo returns no browse entries.

Calculations use the values in this page without a tool-specific server request. These tools keep no result history or favorites. The site theme may be read from localStorage; the surrounding site can make its own requests.

Use Cases

Find the nearest listed CSS color name to an opaque HEX color, compare its RGB distance and copy the named color in HEX, RGB or HSL.
Use the picker for one color or browse the retained CSS keyword list. Search matches the English CSS identifier or HEX; categories group the list. Selecting a name returns to the picker. The copy cards describe the matched named color, which may differ from your input.

How to use

1

Enter HEX or choose a color with the picker.

2

Compare your color and the nearest CSS named swatch, then read the RGB distance.

3

Read the matched name’s HEX, RGB and HSL; click a card to copy that value.

4

Switch to Browse, search a CSS identifier or HEX and narrow the category if useful.

5

Select a named color to return to the picker; clear the search or category when no results appear.

Pro Tips

  • Compare your normalized HEX with the named swatch before copying. RGB/HSL cards copy the named swatch. An empty browse result means the current search and category match no entries; clear or change those filters.
  • The list contains the CSS names implemented here, not thousands of creative, paint or commercial names. Category boundaries and very-close/close labels are tool heuristics, not perceptual guarantees. No match is inferred from an invalid draft.
  • The HEX, RGB and HSL buttons copy the matched keyword's values, not the color you entered — if you want your own hex back, take it from the Enter color box.
  • The box accepts three-digit shorthand: #f00 is expanded to #FF0000 and reported as Red, Exact match!
  • Search in Browse All matches the hex text as well as the name, so typing 8b narrows the list to keywords such as DarkMagenta and DarkRed whose hex contains those characters.
  • Clicking a swatch in Browse All returns you to the finder with Match Quality at Exact match! — the quickest way to read a keyword's RGB and HSL without leaving the page.
  • Aqua and Cyan share #00FFFF, and Fuchsia and Magenta share #FF00FF; the finder keeps the first keyword it meets at the shortest distance, so those hexes always report as Aqua and Fuchsia.

Troubleshooting

Problem:

Enter exactly 3 or 6 hexadecimal digits, optionally preceded by #. Alpha is unsupported.

Solution:

Keep typing the HEX draft; a valid #fff expands in the result. Leaving the field normalizes valid input. Incomplete or invalid input clears the result.

Problem:

Copy unavailable. Select the displayed result and copy it manually.

Solution:

Compare your normalized HEX with the named swatch before copying. RGB/HSL cards copy the named swatch. An empty browse result means the current search and category match no entries; clear or change those filters.

Frequently Asked Questions

No. A valid HEX is compared to the retained named dictionary and the nearest RGB entry is returned. Only distance 0 indicates an identical value; an approximation is not a newly assigned standard name.

CSS includes synonyms such as Aqua/Cyan and Fuchsia/Magenta. They share RGB values, so the first equal-distance entry wins in the finder. Browse still lets you select either identifier.

Paste the hex into Enter color and read the Closest Match card. If your value is one of the 141 CSS keywords the card names it and Match Quality reads Exact match! — #FF7F50 returns Coral. If it is not, you get the nearest keyword with a Very close, Close or Approximate label, and the HEX, RGB and HSL buttons copy that keyword's values.

There is no single official figure to quote: MDN's named-color reference describes the 16 CSS Level 1 keywords plus orange, then says about 150 further colors have a keyword, and pairs such as aqua and cyan are aliases counted twice in some lists. What is exact here is this tool's own set — 141 keywords, all of them visible under Browse All, and that list is what your hex is compared against.

You get the nearest keyword and a quality label instead. #3B82F6 is not a CSS keyword, so the finder returns RoyalBlue (#4169E1) marked Close; the two are 33 units apart in RGB. Use the keyword where an approximation is fine — a comment, a ticket, a mood board — and keep your own hex in the stylesheet when the exact shade matters.

Not here. There is no image upload and no eyedropper: the only inputs are the hex box and the color swatch beside it. To name a color in a photo, sample the pixel with your operating system's color picker or a browser extension, copy the hex it reports, and paste that into Enter color.

No. Pantone, RAL and paint-brand ranges are proprietary catalogues and none of them ship with this tool. Everything it returns is a CSS color keyword — one of the 141 names under Browse All — which is what a browser understands when you write it in a stylesheet.

Not directly. The text box parses hex only, so pasting rgb(59, 130, 246) makes the result panel vanish because the parse fails. Convert the triple to hex first — 59, 130, 246 is #3B82F6 — and paste that. Once a match is found, the RGB button hands you the matched keyword back in rgb() notation.

Yes, in the Browse All tab. The search box filters the 141 swatches as you type and matches the keyword and the hex string, so typing green narrows the grid to the green keywords. Click a swatch and the finder reopens with that color loaded and Match Quality reading Exact match!

They are aliases: aqua and cyan are both #00FFFF, and fuchsia and magenta are both #FF00FF. MDN's named-color page lists both pairs as keywords for each other. Because the finder keeps the first keyword it meets at the shortest distance, #00FFFF always comes back as Aqua and #FF00FF as Fuchsia — the other name is equally valid CSS.

It measures a straight-line distance between the two colors' red, green and blue channels: each difference is squared, the three are added, and the square root is taken. The smallest distance wins. Zero means the hexes are identical, under 30 is labelled Very close, under 80 Close, anything larger Approximate. The measure is arithmetic, not perceptual.

The first 16 keywords were defined in CSS Level 1 and orange arrived in CSS Level 2; the long tail — DarkSlateGray, PapayaWhip, LemonChiffon and the rest — reached CSS from the X11 color list by way of SVG, as MDN's named-color reference explains. That history is why the set is uneven: several near-identical greys and greens sit beside regions with no close keyword at all.

FreeWebTools AI