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 type | text/css |
| Gamut scope | sRGB (Standard Web) |
| Human readability | High |
| Perceptual uniformity | No |
| Alpha channel support | Yes |
| Best for | Legacy CSS theme variables and simple single-hue mental tweaks in sRGB |
HSL
CSShsl(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
- OKLCH vs HSL vs sRGB: Understanding Wide-Gamut Display P3Compare HSL, sRGB Hex, Display P3, and OKLCH across perceptual lightness, gradient dead zones, gamut volume, and CSS progressive enhancement.
- One swatch in RGB, HSL, HSV, HWB and OKLabUse #336699 as a reference to check a color picker, a CSS declaration or a shader. Compare the same swatch in eight notations and find where round-trip errors start.
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%.