HEX: Hexadecimal sRGB Notation

Eight-bit base-16 red, green, blue (and optional alpha) notation (#RRGGBB or #RRGGBBAA) anchored to IEC 61966-2-1 sRGB.

Extension / Token.css / .txt
MIME / Media typetext/css
Gamut scopesRGB (Standard Web)
Human readabilityMedium
Perceptual uniformityNo
Alpha channel supportYes
Best forCompact copy-paste handoff in sRGB brand guidelines and legacy CSS
HEX
CSS / .TXT
#2563EB / #2563EBCC

Strengths

  • Universally supported across every browser, design app, and OS since the 1990s.
  • Extremely short 7-character string ideal for copy-paste and URL slugs.
  • Supports 8-digit #RRGGBBAA alpha channel in all modern CSS engines.

Trade-offs

  • Opaque to human eyes — adjusting lightness or saturation requires converting to HSL or OKLCH.
  • Strictly limited to 8-bit sRGB; cannot express wide-gamut Display P3 tones.

Convert & inspect HEX locally

Related color engineering guides

HEX frequently asked questions

Should new design systems still use Hex for primary tokens?

Keep Hex for legacy brand handoff and 100% sRGB compatibility, or convert scales to OKLCH while outputting Hex sRGB fallbacks for older tools.

Does Hex support transparency?

Yes. CSS Color 4 standardizes 4-digit (#RGBA) and 8-digit (#RRGGBBAA) hex notations with an 8-bit alpha channel.