The tool you need, ready to use

Color Name Finder

Type a HEX code, an RGB or HSL value or a color name, or pick a color with the color picker, and the closest CSS color name appears right away. The tool compares 148 CSS names and 19 Material colors using OKLab distance, which follows how the eye sees differences, and tells you in numbers whether the match is exact or barely distinguishable. You can also copy HEX, RGB, HSL and OKLCH values, explore the color wheel map and compare swatches of the 10 closest names on one screen.

Last updated 2026-10-24All math stays in your browser

Type something like #3498db, 3498db, #fff, rgb(52, 152, 219), hsl(204 70% 53%) or tomato and the name is found right away. You can also choose a name from the suggestions in the input field.

Recent colors

    Colors you look up are kept in this browser only, up to 12.

    Closest CSS color name

    —

    Family —

    HEX
    —
    RGB
    —
    HSL
    —
    OKLCH
    —
    Color wheel map

    The angle is the hue, and colors get more vivid toward the outside. Circles are CSS names, squares are Material colors, and the thick outline marks the 3 closest. Click a dot to switch to that color. Lightness is not shown on the map, so read the differences in the list as well.

    10 closest names

      The number is the OKLab color difference (ΔEOK × 100). Below 2 the two colors are barely distinguishable side by side, and the bar is highlighted. The left swatch is your color, the right one is the candidate.

      Last updated 2026-10-24Your inputs are not stored

      ROBERIN standardThe tool you need,
      ready to use.
      • Clear at a glanceInputs and results sit where you expect them.
      • Result firstThe key number comes first; the working only when you need it.
      • Ask lessNo sign-up and no unnecessary details.

      A HEX code's color name is the closest of the 148 CSS color names

      On the web, the only colors you can call by name are the 148 names defined in the CSS specification. Nine pairs of those share the same value, so there are really 139 distinct colors. Most of the more than 16 million possible HEX codes have no exact name, which means finding a color name is a matter of picking the name that looks closest.

      The tool above measures the distance between your color and 158 named colors (139 CSS colors plus 19 Material colors) in OKLab, a color space tuned to human perception. If an exact name exists, it shows that name. If not, it shows the closest CSS name you can drop straight into code, along with the difference as a number.

      How to use the tool

      1. Enter a color: type HEX (#3498db, 3498db, #fff), rgb(), hsl(), oklch() or a color name, or choose one with the color picker. The result updates as you type.
      2. Read the name and difference: under the closest name you will see "exact match", "barely distinguishable" or "closest name", together with the difference value.
      3. Compare swatches: each of the 10 closest names is shown with your color on the left and the candidate on the right. Click one to switch to that color.
      4. Copy values: copy HEX, RGB, HSL, OKLCH and the name separately. The color is also kept in the page address, so you can share it as a link.

      Four ways to write the same color

      HEX, RGB, HSL and OKLCH are four notations for one and the same color. Here is the default example color #3498DB written all four ways.

      NotationValueHow to read it
      HEX#3498DBRed, green and blue as two hexadecimal digits each (00 to FF)
      RGBrgb(52, 152, 219)The same three values as decimal numbers from 0 to 255
      HSLhsl(204, 70%, 53%)Hue angle, saturation and lightness. Handy for making a color a little lighter or duller
      OKLCHoklch(65.3% 0.135 242.7)Lightness, chroma and hue as the eye perceives them. Equal lightness numbers look about equally bright

      A three-digit HEX code (#fff) equals the six-digit form with each digit doubled (#FFFFFF), and in an eight-digit code (#3498DB80) the last two digits are opacity. This tool leaves opacity out and compares only the color.

      The 148 CSS color names and the basic 16

      Sixteen of the CSS names are the basic colors that go back to early HTML, and most of the rest come from the X11 color list. rebeccapurple (#663399) was added in CSS Color 4. The nine pairs of names with identical values are seven gray pairs that differ only in spelling (gray and grey, darkgray and darkgrey, and so on), plus aqua and cyan, and fuchsia and magenta.

      NameHEXFamily
      black#000000black
      silver#C0C0C0light gray
      gray#808080gray
      white#FFFFFFwhite
      maroon#800000dark red
      red#FF0000red
      purple#800080dark purple
      fuchsia#FF00FFpurple
      green#008000green
      lime#00FF00light green
      olive#808000dark yellow
      yellow#FFFF00yellow
      navy#000080navy
      blue#0000FFblue
      teal#008080teal
      aqua#00FFFFlight teal

      The family column holds rough labels that this tool derives from OKLCH values. They are not standard color names, so treat them only as an aid when describing a color in words.

      Why the closest color is chosen by OKLab distance, not RGB difference

      Differences in RGB numbers do not match the differences the eye perceives. The two pairs below have exactly the same RGB difference, yet the darker pair looks far more different. OKLab is a color space built to even out such gaps, so the straight-line distance between two colors (ΔEOK) tracks what you actually see.

      The two colorsRGB differenceOKLab difference (×100)
      #000000 ↔ #28282869.327.7
      #FFFFFF ↔ #D7D7D769.312.1

      The CSS Color 4 specification treats an OKLCH difference of 0.02 as one just noticeable difference (JND). This tool multiplies by 100 before showing the number, so anything under 2 is barely distinguishable, and above that a bigger number means a more visibly different color. The old version of this tool weighted each RGB channel (2, 4 and 3) before comparing, but that method also scored the two pairs above as equal, which is why it was replaced with OKLab distance.

      Closest names for popular color codes

      These are the results of running the tool on color codes that show up often in web design. An exact CSS name is rare.

      InputClosest CSS nameDifferenceFamily
      #F4A261sandybrown0.5orange
      #FF5733tomato2.2red
      #1ABC9Clightseagreen4.1teal
      #3498DBcornflowerblue5.0blue
      #E74C3Corangered5.1red
      #6A0DADrebeccapurple5.7dark purple
      #2ECC71limegreen5.8green

      #F4A261 is only 0.5 away from sandybrown (#F4A460), so the two can be swapped with almost no visible change. #3498DB, on the other hand, is 5.0 away even from its closest CSS name, cornflowerblue, so using the name would visibly change the color. For colors like that, keep the HEX code instead of a name.

      Common mistakes

      • Assuming darkgray is darker than gray: darkgray is #A9A9A9, which is lighter than gray (#808080). The specification itself notes that the names are not consistent with each other, giving the example that lightpink is darker than pink.
      • Thinking green is a neon green: CSS green is #008000, a dark green, and #00FF00 is lime.
      • Using Material names in CSS: "Material Blue 500" is a name from a design palette, and CSS ignores it. In CSS, write the HEX code (#2196F3).
      • Treating the closest name as the same color: at a difference of 2 or more the colors are visibly different. Where accuracy matters, such as brand colors, use HEX instead of a name.
      • Treating family labels as standard: a label such as "light blue" is only this tool's rough grouping. Colors near a boundary can be called different things by different people.

      Limitations and cautions

      • The name list is the 148 CSS names plus 19 colors from the 500 shade of the Material 2014 palette. Paint, print (such as Pantone) and brand color names are not included.
      • Color differences are computed for sRGB screen colors. The same HEX can look different depending on monitor settings and ambient light.
      • The color wheel map plots only hue and chroma, so colors with different lightness can land on the same spot. Check the actual difference in the numbers of the list.
      • Recent colors stay in this browser only, and the color value in the address (?hex=) is used only when you share a link.

      Reference date Sources checked on 2026-10-09.

      Sources

      Frequently asked questions

      What if no color name matches my HEX code exactly?

      The 148 CSS names cover only 139 distinct colors, so most HEX codes have no exact name. In that case the tool shows the CSS name with the smallest OKLab difference as the representative, and lines up the 10 closest names as swatches next to your color. A difference under 2 means the colors are barely distinguishable even side by side.

      What does the color difference number mean?

      It is the distance between two colors in the OKLab color space (ΔEOK), multiplied by 100. The CSS Color 4 specification uses an OKLCH difference of 0.02 as the smallest difference you can notice (one JND), and that is the 2 in this calculator. A value of 0 means the same color, and the larger the number, the more visibly different the colors are.

      Why not just compare RGB numbers?

      RGB differences do not match how the eye perceives them. Black #000000 versus #282828 and white #FFFFFF versus #D7D7D7 both have an RGB difference of 69.3, but their OKLab differences are 27.7 and 12.1, more than twice apart, because differences among dark colors look larger. That is why this calculator picks the closest name by OKLab distance.

      Is darkgray really lighter than gray?

      Yes. In CSS, darkgray is #A9A9A9 and gray is #808080, so darkgray is lighter. The CSS Color 4 specification itself notes that these names are not internally consistent, giving the examples that darkgray is lighter than gray and lightpink is darker than pink. Check the HEX value instead of trusting the name.

      Are gray and grey, or aqua and cyan, different colors?

      No, they are the same color. Nine pairs among the 148 CSS names share a value: seven gray pairs that differ only in spelling, like gray and grey, plus aqua and cyan (#00FFFF) and fuchsia and magenta (#FF00FF). This calculator lists names with the same value together.

      Can I enter RGB or HSL values too?

      Yes. Any CSS color notation the browser understands is accepted, such as rgb(52, 152, 219), hsl(204 70% 53%) or oklch(65% 0.13 243). HEX can be typed without the # (3498db), and a three-digit #fff is read as #FFFFFF. If a color has opacity, the opacity is left out of the comparison.

      Are the family labels standard color names?

      No. Labels such as light blue or dark yellow are a rough grouping this calculator makes from OKLCH hue, lightness and chroma. Use them to describe a color in words, and use HEX or a CSS name for code or print specifications.

      Where are my recent colors stored?

      Only in the storage of the browser you are using (localStorage), up to 12 colors, and nothing is sent to a server. Use Clear all to remove them. In a private window or a browser that blocks storage, they are not kept.