About the HEX to HSL Converter
HSL describes a colour by hue (0โ360ยฐ around the colour wheel), saturation (0โ100%) and lightness (0โ100%). It makes adjustments intuitive: change only the lightness to get lighter or darker versions of the same colour. The converter turns any HEX code into CSS hsl().
How to use the HEX to HSL Converter
- Enter the HEX code.
- Copy the hsl() value.
Example
Making a hover colour
#5B8DEF is hsl(220, 82%, 65%). Lowering lightness to 55% gives a slightly darker blue for a hover state.
Frequently asked questions
Are the values rounded?
Yes, to whole numbers, so converting back may differ by one step in a channel.
What is hue 0?
Red. 120 is green and 240 is blue.
Does CSS accept HSL?
Yes, all modern browsers support hsl() and hsla().