Why I Reach for HSL
I used to reach for a hex value whenever I needed a color. It was quick, familiar, and it did the job. But if I wanted the color a little lighter or less saturated, I had to change the code and check the result again. The value did not tell me much about the color I was looking at.
That was when I started using HSL more often. Hue, saturation, and lightness map to the way I think about adjusting a color. I can keep the hue and make it softer, or keep the saturation and bring the lightness down. The color on screen can be exactly the same as its hex version. I just find the HSL value easier to read and work with.
Hex values
#ff006e → #3a86ff
HSL values
hsl(334 100% 50%) → hsl(217 100% 61%)
Both panels use the same colors and the same HSL interpolation. Only the way the endpoint values are written changes.
When I am building a palette, I often want to keep the hue and change how vivid or light the color feels. HSL makes that adjustment direct. I can see which part of the value I am changing, and the code stays understandable when I come back to it later.
Hue
Rotate through the color wheel
Saturation
Move from muted to vivid
Lightness
Move from dark to light
In the demo, both panels use the same two colors and animate between them in the same way. Change either endpoint and the swatches update together. The only difference is how the values are written. Hex and HSL do not create different colors by themselves. They give me different ways to describe and work with those colors.
I also reach for HSL when I am thinking about color motion. It gives me a useful way to reason about a transition through hue, saturation, and lightness. But the notation alone does not make an animation smoother. The browser chooses an interpolation space, and that choice shapes the colors between the endpoints. Hex colors can be interpolated too. Writing the endpoints as HSL does not automatically change the path.
For the kind of color movement I have in mind, I can ask CSS to interpolate in HSL explicitly. Then I can reason about the transition in the same terms I used to choose the colors. If perceptual uniformity matters, spaces such as OKLCH or LCH may be a better fit. There is no single color space that works best for everything.
I still use hex when I just need to set a color and move on. There is nothing wrong with it. I reach for HSL when I want the value to be easier to read, tune, or use as part of a color transition. It is a small change, but it makes working with a palette feel a little more direct.