Skip to content
BENIBIX Learn

HSL Color Model

Also known as HSL, Hue Saturation Lightness, HSB, HSV

A way to write screen colors as three dials. Each one is easy to turn.

Think of it like

It is like asking for paint by name. Then you say how bright and how light.

Example

Leo's button is hsl(210 80% 50%). For the hover state he uses hsl(210 80% 40%), just a little darker.

Why it matters

It makes color families easy: keep the hue, change the lightness.

Definition

HSL describes a screen color by hue, saturation and lightness. Hue is an angle on the color wheel. Saturation and lightness are each a percent. It is the same colors as RGB, written in a way people can reason about. To make a darker button on hover, you just lower the lightness.

Example code

css
.button       { background: hsl(210 80% 50%); }
.button:hover { background: hsl(210 80% 40%); }
The first two numbers stay the same. A lower last number makes a darker hover color.
The three panels are the three numbers in an HSL color.

Common mistake

Expecting the same HSL lightness to look equally light for every hue. Yellow at 50% looks far lighter than blue at 50%.

Key takeaways

  1. 1
    Three handles. Hue, saturation and lightness.
  2. 2
    Same colors as RGB. Just easier to reason about.
  3. 3
    Not perfectly even. Hues differ in how light they look.

Learn it properly