CSS Color Names

Inputs

Part of a name or a hex code, like blue or #ff0.

Selected color

  • Name—
  • HEX—
  • RGB—
  • HSL—
  • OKLCH—

All named colors

    CSS lets you write 148 colors by name instead of a code: red, tomato, rebeccapurple, papayawhip and the rest. They’re handy for quick prototypes, examples and teaching, and they work in every browser. This page shows them all as one palette, so you can find the one you want by eye.

    How to use it

    1. Scroll the palette, or search for part of a name or a hex code.
    2. Sort by hue to see similar colors together, by name, or from light to dark.
    3. Click a color to see its values, then copy the one you need.

    Example: searching blue shows the 20 names that contain it, from aliceblue to steelblue. cyan and aqua are two names for the same color, #00ffff.

    Questions and answers

    How many CSS color names are there?

    148 names, for 139 different colors: some colors have two names, like aqua and cyan, fuchsia and magenta, and every gray, which can also be spelled grey.

    Do color names work in every language?

    The names are English keywords and are the same on every site, whatever its language. CSS doesn’t accept translated names, so write tomato, not its translation.

    Why is darkgray lighter than gray?

    The names come from an old X11 color list, and gray was later set to the HTML value #808080, while darkgray kept its X11 value #a9a9a9. It’s a known quirk that can’t be fixed without breaking pages.

    Should I use names or hex codes on a website?

    Either works the same. Names are easier to read in examples; most design systems use hex or OKLCH values so every shade can be tuned.

    Link with pre-filled values

    Add # and these parameters to the end of this page's address to open the tool with values already filled in.

    ParameterWhat it sets
    cThe selected color name.
    qSearch text: part of a name or a hex code.
    sorthue, name or light.

    Example: https://toolabelle.com/css-color-names/#c=rebeccapurple&q=blue&sort=name

    Related tools