Skip to content
ToolHub

HEX to HSL Converter

Convert a HEX colour code to hue, saturation and lightness.

๐ŸŽจ
ColorTools Pro
Color Tools & Generators
โœจ Result
โ€”
โ€”
History 0
๐ŸŽจ
No colors yet
Your history will appear here

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

  1. Enter the HEX code.
  2. 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().

Use โ†‘ โ†“ to move, Enter to open.