Color Name Finder — Name That Color

Paste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.

Runs in your browser

Bulk: name a whole palette

CSS custom properties

Your data never leaves your computer. All processing happens 100% locally in your browser.

How to use the Color Name Finder

  1. Enter a HEX code (e.g. #55AAEE) or any CSS colour, or use the picker.
  2. Read the closest name and how close the match is (ΔE — lower is closer).
  3. Copy a ready-made variable name for CSS, SCSS, JavaScript or Tailwind.
  4. To name a whole palette, paste several colours in the bulk box and copy the generated :root block.

Why name colours?

A HEX code like #55AAEE means nothing in a code review, but --cerulean does. Descriptive colour names make design tokens readable, help designers and developers talk about the same colour, and stop variables like --blue-2-new-final from creeping into a codebase.

How the matching works

The tool compares your colour against about 5,000 hand-picked names from the open-source color-names project (MIT licence). Distances are measured in the perceptually uniform OKLab colour space, so the “closest” name is the one that genuinely looks most similar, not just the one with the nearest numbers. The ΔEOK value tells you how close it is: under about 2 is practically indistinguishable, 2–5 is close, and above 5 the name is a rough description.

You also see the nearest of the 148 official CSS colour keywords (like royalblue or tomato), which you can use directly in CSS.

Naming conventions for tokens

ContextConventionExample
CSS custom propertykebab-case--ocean-blue
SCSS variablekebab-case with prefix$color-ocean-blue
JavaScript / TypeScriptcamelCaseoceanBlue
Tailwind theme keykebab-casebg-ocean-blue

Descriptive vs semantic names

Descriptive names (ocean blue) are great for a raw palette. Components should usually reference semantic tokens (--color-primary, --color-danger) that point at the descriptive ones, so you can re-brand without renaming everything. Generate a full shade scale for each base colour with the Tailwind Color Generator.

Tools that pair well with the Color Name Finder

  • CSS Variables to Tailwind — Turn your :root colour variables into a Tailwind theme in one paste — Tailwind v3 tailwind.config.js or v4 @theme, with literal values or var() references.
  • Color Mixer — Pick two colours and a number of steps to get evenly blended transition colours — perfect for gradients, borders, charts and hover states.
  • HEX to RGBA Converter — Paste a HEX code, drag the opacity slider and copy the exact CSS you need — legacy rgba(), modern rgb( / alpha) or 8-digit HEX.
  • OKLCH Color Converter — Explore the perceptually uniform OKLCH colour space with live sliders, see whether a colour fits in sRGB, and copy matching HEX, RGB and HSL fallbacks.

Frequently asked questions

What colour is #008080?
#008080 is Teal — it is also one of the official CSS colour keywords. Paste any code above to identify it.
Are these official colour names?
Only the 148 CSS keywords (such as tomato) are official in CSS. The other names come from a curated community list and are descriptive labels, not standards.
How accurate is the match?
It shows the perceptually closest name from the list. If ΔE is above about 5 there is no close name, so treat it as a description and consider naming by hue and shade instead (e.g. blue-700).
Can I name many colours at once?
Yes — paste up to 200 colours in the bulk box and copy the resulting :root block. Duplicate names get a numeric suffix.

Related tools