← All notes

CSS color: named values, hex, and wide-gamut Color 4 tools

Answer: CSS has many options for specifying colors. Hexadecimal notation is a shorthand syntax for RGB. Color 4 brings wide gamut color tools. In supported browsers, there's 50% more colors to pick from.

Named colors and hex notation

Pick one of the 148 named colors in CSS.

Those names are plain English words such as purple, tomato, and goldenrod.

Hexadecimal notation, often shortened to hex, is a shorthand syntax for RGB.

In a six digit sequence, the pairs map to the red, green, and blue channels.

Wide-gamut color in CSS Color 4

Color 4 brings wide gamut color tools, plus manipulation functions and better gradients.

In supported browsers, there's 50% more colors to pick from.

Without those updates, styles would stay in older color ranges and could not match wide gamut images and video.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: web.dev, Color; Chrome Developers, High definition CSS color guide. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. CC-BY-4.0 (https://developers.google.com/site-policies). Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License. Copyright Google LLC. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: web.dev, Color; Chrome Developers, High definition CSS color guide. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. CC-BY-4.0 (https://developers.google.com/site-policies). Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License. Copyright Google LLC.

Cite this

Permanent ID: iil:note:dm0r5ekb

iinventedlight. 2026. "CSS color: named values, hex, and wide-gamut Color 4 tools." iinventedlight Library, iil:note:dm0r5ekb, version of 2026-11-23. https://iinventedlight.com/library/notes/css-color/. License: CC-BY-4.0.

@misc{iil_note_dm0r5ekb,
  author = {{iinventedlight}},
  title = {{CSS color: named values, hex, and wide-gamut Color 4 tools}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-23},
  url = {https://iinventedlight.com/library/notes/css-color/},
  note = {Permanent ID iil:note:dm0r5ekb. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/css-color.md.