CSS Named Colors.
All 148 CSS color keywords with hex, rgb() and hsl() values, sortable by name, hue or lightness.
Runs in your browserAbout CSS Named Colors
CSS Named Colors lists all 148 color keywords defined in CSS Color Module Level 4, from aliceblue to yellowgreen, with the equivalent hex code, modern space-separated rgb() notation and hsl() values. Search by name to find every "blue" or "gray", or paste a hex value such as #663399 to discover that it has a name (rebeccapurple, added in honour of Rebecca Meyer). Sorting by hue groups the reds, oranges, greens and blues together so you can browse a family of shades; sorting by lightness runs from black to white, which helps when you need a slightly darker or lighter variant. Named colors are convenient for prototypes, demos, test fixtures and quick debugging outlines, but they come from the old X11 palette and contain surprises: darkgray (#a9a9a9) is lighter than gray (#808080), gray and grey are both valid spellings for every gray keyword, and aqua/cyan and fuchsia/magenta are exact duplicates. Names like "lightgoldenrodyellow" also make design tokens hard to read, so production stylesheets usually prefer hex or custom properties. The keyword transparent and the system colors are not part of this list. Hex, rgb() and hsl() values are computed from the official sRGB values, with hsl() rounded to whole numbers.
How to Use
- Search by color name or paste a hex value.
- Sort by name, hue or lightness.
- Copy the keyword, hex, rgb() or hsl() value into your CSS.
Frequently Asked Questions
How many named colors does CSS have?
148 keywords, counting spelling variants such as gray and grey separately. The list also matches the SVG 1.1 color keywords.
Why is darkgray lighter than gray?
The names come from the X11 palette, where gray was 75% white. CSS adopted HTML's gray (#808080) but kept X11's darkgray (#a9a9a9), so the names contradict each other.
Are the hsl() values exact?
They are rounded to whole degrees and percentages, so converting them back may differ by one unit from the hex value. The hex and rgb() values are exact.
Does the page need a network connection?
No. The color table is part of the page and works offline.
Related Tools
Convert between HEX, RGB, and HSL formats.
All HTML5 named character references with the character, code point and numeric forms, searchable.
Create favicon.ico, apple-touch-icon and web app manifest icons from a letter or an image, in your browser.
Create a 1200×630 Open Graph / Twitter card image from a title, subtitle and logo, plus the meta tags.
Reference for all HTTP status codes.
Information about your current IP address.