ColorPickerTools

HEX to HSL Converter

HEX to HSL converter — instant, exact, and copy-ready.

Quick answer: Paste a hex code to get its hue angle, saturation and lightness, plus the RGB and CMYK values. The HSL result is ideal for building tint and shade ramps.

HEX input
HSL output
HEX
#3B82F6
RGB
rgb(59, 130, 246)
HSL
hsl(217.2, 91.2%, 59.8%)
CMYK
cmyk(76%, 47%, 0%, 4%)
Core facts
Input#RRGGBB
OutputHSL, RGB, CMYK
Privacy100% client-side
CostFree

What is a HEX to HSL Converter?

A hex to HSL converter translates a web color code into hue, saturation and lightness so you can reason about it and adjust it. A designer picking a hover state can keep the hue and saturation and simply lower the lightness, instead of guessing at a new hex.

Common Uses for HEX to HSL Converter

  • Convert a hex from a brand guide into HSL for manual tweaking
  • Derive a darker hover color while keeping the hue identical
  • Understand the hue relationship between two brand colors

How HEX and HSL relate

HEX and HSL describe the same color in different coordinate systems. Converting between them is a matter of arithmetic, not interpretation, so the result is exact: the tool applies the standard formula and shows the value to one decimal place.

Where the rounding happens

Channel values are rounded for display. If you round a value and then convert back, you may land one unit away from the original — that is normal and invisible on screen. Keep the original code when a perfect round-trip matters.

Frequently Asked Questions

How do I convert HEX to HSL?
The tool first decodes the hex into RGB channels, then converts RGB to HSL using the standard formula. You get hue, saturation and lightness directly.
Can I edit the HSL and get a hex back?
Yes — this page includes a converter you can run in both directions.
Does HSL keep the same color?
Yes, it is the same color expressed differently.

More color converters

More Color Tools