Gratis å bruke, uten konto

Finn navn på farger

Skriv inn en heksadesimal farge eller velg en for å finne nøyaktige og nærmeste treff i CSS-paletten med navngitte farger.

Bruker standardpaletten med navngitte CSS-farger. Nærmeste treff er en tilnærming, ikke et offisielt eller universelt fargenavn.

Hvordan finner jeg et fargenavn fra en hex-kode?

Skriv inn en heksadesimal verdi med 3 eller 6 sifre, med eller uten #, eller bruk fargevelgeren. Nøyaktige CSS-fargenavn merkes separat. Andre resultater er de nærmeste standardnavnene etter perseptuell OKLab-avstand; de er tilnærminger, ikke universelle navn.

Veiledning

Slik bruker du Finn navn på farger

The Color Name Finder takes a hex color and tells you which standard CSS color name it matches. If your color is exactly one of those names, it says so. Otherwise it lists the five nearest names by perceptual distance, each with a swatch, a hex value and a distance score. It helps you describe a color in code or in design notes. A close match is an approximation, not an official or universal name.

Slik gjør du

  1. Type a hex color with 3 or 6 digits, with or without the #, or pick a color with the color chooser. Eight-digit hex with transparency is not accepted.
  2. Press Find color name. The box is rewritten as a clean six-digit hex in capital letters, and the chooser moves to match it.
  3. Read the list of five matches. Each shows the name, any other names for the same color in brackets, the hex value and a distance. Zero means an exact match, and a larger number means farther away.
  4. Use Copy closest name for the top name, or Copy hex value for the cleaned-up hex.

Eksempler

A color that has an exact name

Du skriver inn
HEX-farge
#6495ED
Du får
Nøyaktig treff
ja
Treff
cornflowerblue #6495ed, distance 0; dodgerblue #1e90ff, distance 5.86; steelblue #4682b4, distance 10.15; mediumpurple #9370db, distance 10.38; deepskyblue #00bfff, distance 11.12

The value is the same as the CSS color cornflowerblue, so the tool shows the exact-match message. The other four are the next-nearest names, listed for comparison.

Kjørt med verktøyets egen kode.

A color with no close name

Du skriver inn
HEX-farge
#123456
Du får
Nøyaktig treff
nei
Treff
midnightblue #191970, distance 8.65; darkslategray #2f4f4f, distance 10.29; darkslateblue #483d8b, distance 12.27; navy #000080, distance 12.77; darkblue #00008b, distance 13.36

No standard name matches. Even the nearest one, midnightblue, is 8.65 away on this scale, so treat it as a rough description. Note that darkslategray also has the spelling darkslategrey.

Kjørt med verktøyets egen kode.

A three-digit value with two names

Du skriver inn
HEX-farge
0ff
Du får
HEX-inndata
#00FFFF
Nøyaktig treff
ja
Første treff
aqua (aqua, cyan) #00ffff, distance 0
Neste
aquamarine #7fffd4, distance 6.85

The short form 0ff expands to 00FFFF. CSS gives that one color two names, aqua and cyan, so the tool groups them on one line and puts aqua first.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Put a readable color name next to a hex code in design notes or documentation.
  • Find the CSS keyword for a hex value you already use, when there is an exact match.
  • Describe a brand color in plain words for a person who cannot see the swatch.
  • Show students how far their custom colors are from the named CSS colors.

Begrensninger

  • The list is the CSS named colors only: 148 names that cover 139 different colors. Pantone, paint-brand and other naming systems are not included, and neither are keywords such as transparent.
  • Input must be a hex value with 3 or 6 digits. The tool does not accept rgb(), hsl(), color names typed in, or hex with an alpha channel.
  • Closeness is measured in the Oklab color space and scaled by 100. The numbers only rank the candidates. No cut-off says when two colors look the same.
  • It always shows five matches, and you cannot change that number.

Tips

  • Use an exact match when you want a name you can type straight into CSS. Use a near match only to describe the color, since swapping it in would change the look.
  • When the first two distances are close together, choose whichever name fits your purpose. The top one is only the nearest, not the best word.
  • If you get an error, check for stray characters or the wrong number of digits. Only 0 to 9 and A to F count, in 3 or 6 digits.

Kilder

Vanlige spørsmål

How do I find a color name from a hex code?

Type the 3 or 6 digit hex, with or without the # sign, and press Find color name. The tool compares it with every CSS named color. An exact match is flagged, and otherwise you get the five closest names with their distances.

Why do some results show two or three names?

CSS gives a few colors more than one spelling. Aqua and cyan are the same color, and gray and grey are another pair. The tool groups names that share one exact value, so you see them together on one line.

What does the distance number mean?

It is the straight-line gap between two colors in the Oklab space, multiplied by 100. Zero means identical. Bigger numbers mean the colors are further apart, but the scale is this tool's own, so use it only to compare the five results.

Does every hex color have an exact name?

No. Over sixteen million hex values exist, and CSS defines only 139 distinct named colors. Most hex values get a nearest match instead, which is a way to describe the color and not a name it officially has.

Is the closest name an official or universal name?

No. It is simply the nearest of the CSS keywords. Other fields, brands and languages name colors differently, so the same hex can have a very different name elsewhere.

Can I type an rgb value or an eight-digit hex?

No. The field takes only 3 or 6 hex digits, up to 7 characters including the #. Convert an rgb or hsl color to hex first. For an eight-digit value with transparency, remove the last two digits to match the solid color.

Is the color I type uploaded anywhere?

No. The matching runs in your browser, and the page states that no color value is uploaded or saved by this tool.

Hvordan finner jeg et fargenavn fra en hex-kode?

Skriv inn en heksadesimal verdi med 3 eller 6 sifre, med eller uten #, eller bruk fargevelgeren. Nøyaktige CSS-fargenavn merkes separat. Andre resultater er de nærmeste standardnavnene etter perseptuell OKLab-avstand; de er tilnærminger, ikke universelle navn.

Lastes fargen min opp?

Nei. Treffene beregnes lokalt i nettleseren. Fargeverdien lastes ikke opp eller lagres av dette verktøyet.

Har alle heksadesimale farger et nøyaktig navn?

Nei. CSS definerer en fast palett med navngitte farger. For andre verdier viser verktøyet de nærmeste fargene i paletten som tilnærminger.

Hvorfor kan to CSS-fargenavn ha samme verdi?

Noen standardnavn er aliaser, for eksempel aqua og cyan. Verktøyet grupperer navn som har nøyaktig samme RGB-verdi.