About HEX to HSL
HSL describes a colour the way a person would: which colour it is (hue, an angle from 0 to 360), how vivid it is (saturation) and how light it is (lightness). RGB and hex describe how much of each primary a screen should emit, which is precise and almost impossible to reason about by hand.
The practical benefit is editing. Making a colour 10% darker in HSL means changing one number. In hex it means converting to RGB, scaling three channels, and converting back — and the result usually shifts hue slightly because the channels do not scale evenly.
One caveat worth knowing: HSL lightness is not perceived lightness. Yellow and blue at 50% lightness look nothing alike in brightness. If you are generating a colour scale where the steps must look even, OKLCH — also shown here — is the format designed for that.
How to convert HEX to HSL
Paste your hex code
Any hex form works, including the three-digit shorthand and the eight-digit form with alpha.
Read the HSL value
The highlighted row gives hue in degrees, with saturation and lightness as percentages, ready for CSS.
Edit it directly
Drag the lightness slider to make a colour lighter or darker without shifting its hue — the reason to work in HSL in the first place.