Accueil Color to Name

Color to Name

Find the nearest CSS color name for any color — 100% in your browser.

Input

Output

What is a CSS color name?

A CSS color name is a human-readable keyword that browsers map to a fixed RGB value. CSS defines around 140 named colors — from the 17 basic HTML colors like red, blue and white to the extended X11 list that adds skyblue, tomato, rebeccapurple and more. Each name resolves to an exact RGB triple, so skyblue always means rgb(135, 206, 235).

Named colors are convenient because they are easier to remember and read than HEX codes, and they work directly in CSS, HTML and SVG without any quotes or functions. Designers also use them as a shared vocabulary when discussing palettes — saying "use tomato instead of red" is clearer than citing two HEX codes.

How the nearest match is found

Because only about 140 named colors exist but over 16.7 million HEX colors are possible, most colors you pick will not have an exact named match. This tool finds the nearest named color by computing the Euclidean distance in RGB space between your color and every named color, then returning the one with the smallest distance:

distance = √((R₁ − R₂)² + (G₁ − G₂)² + (B₁ − B₂)²)

The result is the named color that is visually closest to your input. For most picks the match is excellent; for colors that sit between two named colors the result may differ slightly from another tool's choice, because simple RGB distance ignores how human vision perceives differences (it weights all channels equally rather than accounting for luminance sensitivity).

When to use color names

Color names shine in several practical workflows:

  • Rapid prototyping. Spelling coral is faster than looking up #FF7F50 when sketching a UI.
  • Readable code. color: tomato; communicates intent more clearly than a raw HEX value to the next developer.
  • Design discussion. Naming a color ("this brand blue is close to dodgerblue") creates a shared vocabulary.
  • Accessibility review. Knowing the nearest named color helps reason about lightness and contrast.
  • Education. Students learning CSS can use named colors before moving to HEX and HSL.

For production brand palettes you should still ship exact HEX codes — names are a convenience layer, not a substitute for precise tokens.

Named colors vs HEX and RGB

Named colors, HEX and RGB all describe the same underlying sRGB color. A name is simply an alias for one fixed RGB triple: skyblue, #87CEEB and rgb(135, 206, 235) produce identical pixels. The difference is convenience — names are readable, HEX is compact and universal, and RGB exposes the channels for programmatic manipulation.

HEX is the safest choice for cross-tool consistency because every browser, design app and image editor supports it and because it has no ambiguity. Named colors are best for quick drafts and documentation, while RGB (and its HSL cousin) is best when you need to compute or animate color values.

How to find a color name

Finding the nearest color name with this tool takes a second and runs entirely in your browser. No upload, no sign-up, no install. Follow these steps:

  1. Pick a color. Use the color picker, or type red, green and blue values (0–255) into the RGB inputs.
  2. Read the result. The nearest CSS color name and its HEX value update live, with a swatch showing the matched color.
  3. Copy the name. Click "Copy Name" to copy the keyword, then paste it into your CSS or design tool.

Every step runs locally in JavaScript, so your color choice never leaves your browser. This makes the tool completely private and instant.

Is this color to name converter free?

Yes, completely free with no sign-up, no watermark and no limits other than your device's memory.

Why is the matched name slightly different from my color?

There are only ~140 named colors but millions of possible colors, so most inputs have no exact match. The tool returns the visually closest named color using RGB Euclidean distance.

Can I enter RGB values instead of picking?

Yes. Type red, green and blue values (0–255) into the R, G, B inputs and the nearest name updates instantly.

Is my input uploaded?

No. All processing happens locally. Your color never leaves your browser.