Skip to content

Color Name to HEX Converter

All 148 CSS colour names as HEX — and the nearest name for any colour.

HEX
—

Quick Tool Overview

Color Name to HEX converts any of the 148 CSS named colours to HEX and RGB, finds the nearest names for any HEX colour by perceptual difference, and lays every named colour out as a filterable swatch grid.

What it does
Converts CSS colour names to HEX and back
You give it
A colour name or any colour value
You get back
The HEX code, or the closest names
Best for
Stylesheets, prototypes and naming colours
Converters Free, unlimited use No sign-up Runs in your browser

About the Color Name to HEX Converter

CSS has 148 named colours, from the obvious red and navy to the unexpected papayawhip, lightgoldenrodyellow and rebeccapurple. They are handy in quick prototypes and old stylesheets, but a design system, an image editor or an Android app wants the HEX code — and nobody remembers what peru looks like.

Type a name to get its HEX, RGB and every other notation, with the names that share the same colour (grey and gray, aqua and cyan). Type a HEX or RGB colour instead and the converter finds the closest named colours using CIEDE2000, the perceptual colour difference, with how visible each difference is. All 148 swatches are laid out by hue and can be filtered and clicked.

Key features of the Color Name to HEX Converter

All 148 names

Every CSS Color Level 4 keyword, from aliceblue to yellowgreen.

Reverse lookup

Paste a HEX to find the closest named colours, ranked by CIEDE2000.

Duplicates flagged

Names that share a colour, such as gray and grey, are listed together.

Swatch grid by hue

Named colours are arranged by hue, filterable by word and clickable.

Autocomplete

Colour names are suggested as you type.

How to use the Color Name to HEX Converter

  1. 1

    Type a colour name

    Suggestions appear as you type; spaces and capitals are ignored.

  2. 2

    Or enter a HEX

    Paste any colour to find the nearest CSS names instead.

  3. 3

    Browse the swatches

    Filter the 148 colours by word and click any swatch to select it.

  4. 4

    Copy the code

    Copy the HEX, RGB, HSL or any other notation from the result.

Frequently asked questions

148 keywords in CSS Color Level 4, including duplicates such as gray/grey and aqua/cyan, plus transparent and currentColor, which are not fixed colours.

Reviews of the Color Name to HEX Converter

What people who use the Color Name to HEX Converter think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Color Name to HEX Converter. It takes half a minute and no account.

Write the first review

More converters