La guía de esta página solo está disponible en inglés por ahora.
How to use HSL
- 1Set the hue (0–360°) to choose the base color on the color wheel: 0 red, 120 green, 240 blue.
- 2Use saturation to go from gray (0%) to fully vivid (100%).
- 3Use lightness to go from black (0%) through the pure color (50%) to white (100%).
- 4Copy the
hsl()value or its HEX/RGB equivalent.
Why designers like HSL
With HSL you can build a consistent set of colors by keeping one value fixed: change only lightness for hover and pressed states, or only hue for a set of category colors with the same intensity.
One limitation: HSL lightness is not perceptual. Yellow at 50% lightness looks much brighter than blue at 50%. When you need perceptually even steps, consider OKLCH — available in the color converter.
Preguntas frecuentes
What's the difference between HSL and HSV?
Both use hue and saturation, but HSL's lightness puts the pure color at 50% (with 100% always white), while HSV's value puts the pure color at 100%. Design apps often use HSV; CSS uses HSL.
Can I use HSL directly in CSS?
Yes. hsl(196 67% 45%) and hsl(196 67% 45% / 0.5) work in all modern browsers.