HSL: Hue Saturation Lightness Cylindrical Model

Cylindrical rearrangement of sRGB into Hue (0–360°), Saturation (0–100%), and Lightness (0–100%) — intuitive to read, but uneven in true luminance.

Extension / Token.css
MIME / Media typetext/css
Gamut scopesRGB (Standard Web)
Human readabilityHigh
Perceptual uniformityNo
Alpha channel supportYes
Best forLegacy CSS theme variables and simple single-hue mental tweaks in sRGB
HSL
CSS
hsl(221deg 83% 53%)

Strengths

  • Human-friendly hue degrees (0° red, 120° green, 240° blue) and quick lightness edits.
  • Zero-setup compatibility across legacy browsers and Tailwind v3 configs.
  • Supports modern CSS Color 4 space-separated slash alpha syntax.

Trade-offs

  • Not perceptually uniform: hsl(60 100% 50%) yellow looks vastly brighter than hsl(240 100% 50%) blue.
  • Confined to sRGB gamut; unable to target P3 screens.

Convert & inspect HSL locally

Related color engineering guides

HSL frequently asked questions

Why replace HSL with OKLCH in Tailwind v4 and design tokens?

Keeping L constant in OKLCH preserves true human-perceived lightness across every hue, preventing sudden contrast failures across blue, green, and yellow badges.

What is the difference between HSL and HSB/HSV?

HSL puts pure white at L=100% and vibrant colors at L=50%, whereas HSB/HSV puts pure colors and white at B/V=100%.