Color guide

HSL Color Model: Hue, Saturation and Lightness

Learn how HSL represents sRGB colors, what hue, saturation and lightness mean, and when HSL is useful in CSS and design systems.

Quick answer

HSL represents an sRGB color with three components: hue is an angle around a color wheel, saturation describes intensity relative to gray, and lightness moves from black through the chosen hue toward white.

Three-part HSL diagram showing hue as an angle, saturation from gray toward color, and lightness from black through a hue toward white.
HSL separates hue, saturation, and lightness for convenient editing, but equal HSL lightness does not imply equal perceived brightness.

Hue

Hue is expressed as an angle. In CSS HSL, 0° is red and the wheel continues through yellow, green, cyan, blue and magenta before returning to red at 360°.

Because hue wraps around, 0° and 360° point to the same position. Complementary hue positions are roughly 180° apart in this cylindrical model.

Saturation

Saturation controls how far the color is from a gray of the same HSL lightness. At 0% saturation, the hue component has no visible effect and the result is grayscale.

At 100%, the color is maximally saturated for that HSL hue and lightness, but perceived vividness still varies by hue.

Lightness

HSL lightness runs from 0% black to 100% white. At 50% lightness, fully saturated hues reach their strongest HSL form.

Equal HSL lightness values do not imply equal perceived brightness. This is one reason HSL is convenient for editing but not a perceptually uniform color space.

When HSL is useful

HSL is often easier than raw RGB channels when you want to rotate a hue, reduce saturation or create systematic lightness variants in CSS.

For accessibility, however, do not infer contrast from HSL lightness alone. Measure relative luminance for the actual foreground and background colors.

Worked example: reading one HSL value

The Colormapped violet #5B5CF0 converts to a rounded HSL display of about 240° 83% 65%.

Hue 240°

Position around the hue circle; this sits in the blue/violet direction

Saturation 83%

High HSL saturation

Lightness 65%

Above the midpoint between HSL black and white

HEX reference #5B5CF0

Original sRGB color before HSL display rounding

HSL is intuitive for directional adjustments, but its lightness and saturation axes are not perceptually uniform. Use it as a control model, not a perceptual measurement.

Useful tools

Sources and method