Named Color to HEX Converter

Converted HEX Output --
100%

Wide-Gamut & Linear Formats

Modern CSS color space notations derived from this color

Contrast Analysis (WCAG 2.1)

Checks the converted color against foreground or background targets for accessibility compliance.

Using the Named Color to HEX Converter

To find the HEX code for a specific CSS color keyword, simply type the name (like tomato, cornflowerblue, or goldenrod) into the input field above. The tool will instantly look up the exact base-16 HEX code associated with that word.

The CSS Color Dictionary

Modern web browsers recognize 148 specific color names, defined by the CSS Color Module Level 4 specification. These range from basic primary colors like red and blue to highly specific shades like papayawhip and darkolivegreen.

Under the hood, browsers don't actually process these words as colors. Instead, they use a hardcoded lookup table. When the browser's rendering engine sees the word rebeccapurple, it immediately swaps it out for the HEX code #663399 before painting the pixel to the screen.

Why Convert Names to HEX?

While named colors are great for quick prototyping, they are rarely used in production design systems. They lack flexibility. For example, you can't easily make tomato 10% darker without switching to a numeric format.

Converting a named color to HEX gives you the raw mathematical value. From there, you can drop it into a design tool like Figma or Photoshop, or use it as a baseline to generate a custom color palette.

Related Tools