Skip to content

Color Name Finder

Find the closest named CSS color for any hex color code. Identify colors by their standard names instantly.

Color Name Finder tool

Loading...

Example

Input: #C4653A

Result: Closest Match: Chocolate #D2691E, Distance: 31.56 (next: Peru 33.62, IndianRed 36.30)

The tool measures the straight-line distance in RGB space to all named CSS colors: from (196, 101, 58) to Chocolate (210, 105, 30) it is the square root of 14^2 + 4^2 + 28^2 = 31.56.

Selected CSS Named Colors

NameHexNote
Gray#808080Darker than DarkGray
DarkGray#A9A9A9Lighter than Gray
Green#008000Half-bright green
Lime#00FF00Pure screen green
Aqua#00FFFFSame as Cyan
Fuchsia#FF00FFSame as Magenta
Maroon#800000Half-bright red
Navy#000080Half-bright blue
Olive#808000Half-bright yellow
Teal#008080Half-bright cyan
RebeccaPurple#663399Newest CSS name

Hex values from the color list the tool uses.

  1. Enter any color as a 3- or 6-digit hex code in the Hex Color field.
  2. The tool instantly identifies the closest matching CSS named color from the 148 official standard names using RGB distance.
  3. Compare the visual swatch of your input color displayed side by side with the matched named color to see how close they are.
  4. Review the top 5 closest named colors with their hex codes and distance scores, and click one to load it as the input.
  5. Copy the color name with the Name button, or copy any match hex code, for use in your CSS or design specifications.

Finding the Closest CSS Color Name

This tool finds the CSS named color closest to any hex code. For #C4653A the nearest name is Chocolate (#D2691E), followed by Peru and IndianRed. It lists the five closest names with their hex codes, so you can pick the one that looks right.

CSS recognizes 148 color names, from AliceBlue to YellowGreen. Seven of them are grey spellings, such as grey and darkslategrey, which share values with their gray twins. So the tool checks 141 entries and shows the gray spelling. Some names are true aliases too: Aqua and Cyan are both #00FFFF, and Fuchsia and Magenta are both #FF00FF.

Matching uses straight-line distance in RGB space. The tool squares the gaps in red, green and blue, adds them and takes the square root. A distance of 0 is an exact match, and smaller numbers mean closer colors. RGB distance does not follow human vision perfectly, which is why you see five matches instead of one.

Names help when you describe a color to a colleague, write a quick prototype or label swatches in a style guide. For production code, the exact hex value is safer, since a named color is usually only close. Click any match to load it as the new input, or copy its name. If you are still choosing the color itself, start with the Color Picker.

Sources

Frequently Asked Questions

There are 148. That count includes seven grey spellings that repeat gray colors, and pairs such as Aqua and Cyan that share one value. The list grew over time: CSS 2.1 had 17 basic names, most came later from the X11 color list, and RebeccaPurple (#663399) was the last one added.
It is a historical quirk. Gray (#808080) comes from the original 16 HTML colors, while DarkGray (#A9A9A9) came from the X11 color list that browsers adopted later. The two lists were never made consistent, so DarkGray ended up lighter. Green (#008000) and Lime (#00FF00) have the same kind of mismatch.
No. DarkSlateGray, darkslategray and DARKSLATEGRAY all mean #2F4F4F. Lower case is the usual style in CSS files. This tool shows names in camel case, such as DarkSlateGray, because that is easier to read.
Use hex, RGB or HSL for brand and design system colors, because you need the exact value. Named colors are fine for prototypes, demos and basics like white, black or transparent. Mixing both styles in one codebase makes colors harder to search and update, so most teams pick one.

Related Tools

Hex to RGB Converter

Convert hexadecimal color codes to RGB values instantly. Supports shorthand and 8-digit hex with alpha.

Color Tools

Color Picker

Pick any color visually and get values in hex, RGB, HSL, and CMYK. Interactive saturation panel and hue slider.

Color Tools

RGB to HSL Converter

Convert RGB color values to HSL format. See hue, saturation, and lightness with a live color preview.

Color Tools

Color Palette Generator

Generate harmonious color palettes. Create complementary, analogous, triadic, and split-complementary schemes.

Color Tools

Color Shade and Tint Generator

Generate shades and tints of any color. Create darker and lighter variations for complete color scales.

Color Tools

Color Blindness Simulator

Simulate how colors appear to people with color vision deficiencies. Test protanopia, deuteranopia, and more.

Color Tools