Designer

Color Name Finder

Find the closest CSS color name for any HEX or RGB code, with the top 5 matches.

Designer

Why Use the Color Name Finder?

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.

How to Use the Color Name Finder

  1. Enter any color with the picker or type a HEX, rgb(), hsl() or CSS color name value into the text box.
  2. Read the nearest CSS named color shown as the main result.
  3. Compare the five closest matches and their distance values, where a smaller number means a closer match and zero means an exact match.
  4. Click any swatch to copy its HEX code, or type the matched name straight into your CSS as a color keyword.

Best For

  • Describing a product or garment color in plain words for an online store listing.
  • Writing alt text or accessible descriptions that mention colors in a way people understand.
  • Giving readable labels to color tokens in design documentation and style guides.
  • Finding a short CSS keyword that is close enough for a quick prototype or demo.

Pro Tip

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

Color Name Finder FAQ

How do I find the name of a color from its HEX code?

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.

How is the closest color name calculated?

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.

How many named colors are there in CSS?

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.

Why does my color not have an exact name?

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

Guides for the Color Name Finder

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 Guide

How to Pick an Exact Color From Any Image or Screenshot

Learn 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 Guide

HTML Color Names: A Practical Guide to All 148 CSS Named Colors

A 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
Copied