CSS Named Colors

All 148 CSS Color Module Level 4 named colors with swatches, hex values, RGB, HSL, and live click-to-copy. Sort by hue, lightness, or name; filter by search term or hex prefix.

Reference Color & Design Updated May 23, 2026
How to Use
  1. Search by name (red, salmon, cornflowerblue…) or hex (ff or #cd5c).
  2. Sort by hue (the rainbow), lightness, or alphabetical.
  3. Click any swatch to copy its name. Shift-click to copy its hex.
— colors

About CSS named colors

Count
148 distinct names
Some are aliases (gray/grey, aqua/cyan, fuchsia/magenta) → 140 unique colors.
Spec
CSS Color Module Level 4
w3.org/TR/css-color-4/#named-colors
Origin
X11 + SVG + HTML 4
Inherited from the 1980s X Window System color database.
Special
rebeccapurple #663399
Added 2014 in memory of Rebecca Meyer.

Frequently Asked Questions

How many CSS named colors are there?

148 (per CSS Color Module Level 4). Some have aliases (gray/grey, aqua/cyan, fuchsia/magenta).

When should I use them?

Demos, mockups, code samples, debugging. For production design systems, use semantic tokens (--color-primary) backed by a chosen palette.

Which ones are legacy?

The 16 HTML 4 colors — aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, yellow. Everything else came from X11 / SVG / CSS3 extensions.

Why is rebeccapurple special?

Added to CSS Color Module Level 4 in 2014 in memory of Rebecca Meyer, daughter of CSS pioneer Eric Meyer. It is hex #663399.

Common Use Cases

Quick prototyping

Grab a named color while sketching ideas in code.

CSS reference

Look up the hex of a name or vice versa instantly.

Palette inspiration

Browse the spectrum by hue to spot pairings.

Last updated: