2026 Key Statistics & Quick-Cite Summary
Short version: Out of 148 official CSS color names, 99 (66.9%) are longer than a 7-character #RRGGBB hex code, averaging 8.9 letters long. The longest valid web color name — lightgoldenrodyellow — is 20 letters long (nearly 3× longer than #FAFAD2)!
- 66.9% — Built-in CSS color names longer than a 7-character hex code (99 of 148) (ColorQueue 148-Name Audit)
- 20 letters — Longest official web color name: "lightgoldenrodyellow" (#FAFAD2) (W3C CSS Color 4 List)
- 8.9 chars — Average length of a CSS color name (27% longer than #RRGGBB) (All 148 Keywords Counted)
People often type CSS color names like "cornflowerblue" or "mediumaquamarine" thinking they’re a handy shortcut. We counted the letters in all 148 official web color names — and 2 out of 3 are actually LONGER than a standard 7-character hex code.
Not Shorter — and Way Harder to Spell
Short names like red (3 letters) or blue (4 letters) feel convenient. But across all 148 official CSS color names, 99 of them (66.9%) take MORE characters than a regular 7-character #RRGGBB hex code — averaging 8.9 letters each.
Try spelling lightgoldenrodyellow (20 letters!), mediumspringgreen (17 letters), or mediumaquamarine (16 letters) without making a typo.
Longest Official Web Color Names vs. Standard 7-Character Hex Code
Character length of the longest CSS color keywords compared to a 7-character #RRGGBB hex code.
| Item | Value | Context |
|---|---|---|
| lightgoldenrodyellow | 20 letters | #FAFAD2 is 65% shorter! |
| mediumspringgreen | 17 letters | #00FA9A is 59% shorter! |
| mediumaquamarine | 16 letters | — |
| mediumslateblue | 15 letters | — |
| mediumvioletred | 15 letters | — |
| Average of all 148 names | 8.9 letters | 27% longer than hex |
| Regular #RRGGBB Hex Code | 7 letters | Always 7 characters |
Data note: Exact character counts of all 148 W3C CSS Color 4 named colors paired with HTTP Archive 2024 CSS weight data (78–80 KB median).
Why Code Size Adds Up in Emails and SVGs
According to HTTP Archive, the typical website already ships 78 to 80 KB of CSS (and 269 KB on heavy sites). While build tools shrink regular stylesheets, raw inline SVGs and HTML marketing emails often repeat long color names hundreds of times verbatim.
Even Worse: Most of Them Fail Contrast
Pair this with our earlier study showing 78.4% of named colors fail white-text contrast, and built-in color names turn out to be a double loser: longer to write *and* harder to read.
Swap Any Named Color to Clean Hex in 1 Click
Look up any old CSS color name and copy its clean 7-character hex or modern OKLCH code in our Web Color Directory.
Cite This Study
ColorQueue (2026). "2 Out of 3 Built-In Web Color Names Are Longer to Type Than Regular 7-Character Hex Codes." https://colorqueue.com/guides/css-named-colors-byte-bloat-audit/
Research Sources & Primary Citations
- Official W3C List of 148 CSS Named Colors — W3C (2024)
- Web Almanac: How Big Website CSS Files Are — HTTP Archive (2024)
- MDN Named Color Reference — Mozilla MDN (2025)