Free Online HEX to HSL Converter
Convert HEX Color Codes to HSL Instantly
Need to use HEX to HSL Converter right now?
HSL (Hue, Saturation, Lightness) represents color in a way that maps much more intuitively to how people actually think about adjusting a color — "make it lighter," "make it more vivid" — than RGB or HEX do, since lightness and saturation are each isolated, independently adjustable values rather than blended across three channels.
243°
Hue75%
Saturation59%
LightnessFeatures
- Runs entirely in your browser
- Privacy-first — your data is never uploaded
- Real-time, instant results
- 100% free, no sign-up required
- Works on desktop, tablet, and mobile
- No installation needed
Who uses this tool?
About HEX to HSL Converter
HSL (Hue, Saturation, Lightness) represents color in a way that maps much more intuitively to how people actually think about adjusting a color — "make it lighter," "make it more vivid" — than RGB or HEX do, since lightness and saturation are each isolated, independently adjustable values rather than blended across three channels.
This tool converts any HEX color code into its exact HSL equivalent through a real color-space transformation — unlike the lossless HEX-to-RGB conversion, converting to HSL involves genuine trigonometric-style math based on the relative proportions of red, green, and blue, calculating hue as an angle around a color wheel (0-360°) and saturation and lightness as percentages.
HSL is especially useful in CSS when you need to generate a set of related colors — a hover state that's slightly darker, a lighter tint for a background, or a full shade scale — since adjusting just the lightness value (keeping hue and saturation fixed) produces a visually consistent set of variations, something that's much harder to do by eye with raw HEX or RGB values.
This is useful for building a CSS design system with consistent color variations, understanding a color's hue and intensity independent of its brightness, or converting a HEX value from a design tool into HSL for easier programmatic lightness adjustments.
How it works
- Enter a HEX color code. With or without the #, in 6-character or 3-character shorthand form.
- View the HSL equivalent. Hue in degrees, saturation and lightness as percentages.
- Copy the result. Ready to paste directly into CSS.
Examples
Converting HEX to HSL
Input
#4f46e5
Output
hsl(244, 75%, 59%)