2 Out of 3 Built-In Web Color Names Are Longer to Type Than Regular 7-Character Hex Codes

99 out of 148 built-in CSS color names (66.9%) are longer than #RRGGBB hex codes — averaging 8.9 characters up to 20-letter lightgoldenrodyellow.

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.

Longest Official Web Color Names vs. Standard 7-Character Hex Code
ItemValueContext
lightgoldenrodyellow20 letters#FAFAD2 is 65% shorter!
mediumspringgreen17 letters#00FA9A is 59% shorter!
mediumaquamarine16 letters—
mediumslateblue15 letters—
mediumvioletred15 letters—
Average of all 148 names8.9 letters27% longer than hex
Regular #RRGGBB Hex Code7 lettersAlways 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

Open Web Color Lookup

Featured Color Swatches & HEX Codes

  • #FAFAD2sRGB HEX Specification
  • #00FA9AsRGB HEX Specification
  • #66CDAAsRGB HEX Specification
  • #7B68EEsRGB HEX Specification
  • #C71585sRGB HEX Specification

Frequently Asked Questions

What is the longest official CSS color name?

lightgoldenrodyellow — 20 characters long (exact hex: #FAFAD2).

What are the shortest CSS color names?

red and tan tie at just 3 letters — even shorter than a 4-character shorthand hex like #F00.

Is there any real reason to use CSS color names today?

Only quick throwaway demos or simple words like white, black, or transparent. For real websites, hex or OKLCH tokens are shorter, cleaner, and easier to manage.