Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Convert HEX colors to HSL values instantly with a live preview and color picker.
Preview Color
HEX to HSL conversion takes a color written as a six-digit hexadecimal code and expresses it in the HSL color model of Hue, Saturation, and Lightness. A HEX code such as ADD8E6 packs the red, green, and blue channels into a compact string that is common in CSS and design files, while HSL describes the same color using a hue angle from 0 to 360 degrees, a saturation percentage from 0 to 100 percent, and a lightness percentage from 0 to 100 percent.
Working in HSL makes it easier to reason about color visually, because you can shift the hue, dial saturation up or down, or lighten and darken a shade without hunting for a new HEX value by hand. All calculations run locally in your browser, so your color values never leave your device and are not uploaded to any server.
The conversion runs in two stages. First, the HEX code is parsed into RGB, splitting the string into red, green, and blue channels that each range from 0 to 255. Second, those RGB channels are normalized to a 0 to 1 scale and mapped into the HSL cylinder: the relationship between the channels sets the hue angle, the spread between the brightest and darkest channel sets the saturation, and the midpoint of that range sets the lightness.
This is exactly the pipeline the converter above uses, so the Hue, Saturation, and Lightness fields always match the live output for whatever HEX value you enter or pick.
Follow these steps to convert a HEX color to HSL:
This converter is useful across a range of design and development workflows:
Explore our other color tools: HSL to HEX Converter for the reverse conversion, RGB to HSL Converter, HSL to RGB Converter, and HEX to RGB Converter.
Building and shipping accessible color systems? Test your CSS across 3000+ browsers and 10,000+ real devices on TestMu AI.
HEX to HSL conversion takes a color written as a six-digit hexadecimal code and expresses it in the HSL model of Hue, Saturation, and Lightness. HSL is often easier to reason about when you want to adjust a color visually.
Yes, the HEX to HSL converter is free to use. There is no sign-up and every conversion runs in your browser.
Yes, you can pick a color with the color picker and the HEX and HSL values update instantly.
HSL stands for Hue, Saturation, and Lightness. Hue is an angle from 0 to 360 degrees, while saturation and lightness are percentages from 0 to 100.
The HEX code is first parsed into RGB red, green, and blue channels, and those channels are then mapped into the HSL cylinder to produce the hue, saturation, and lightness values you see in the output.
Yes, use the copy button to copy the hsl() string to your clipboard.
Yes. All calculations run locally in your browser, so your color values are not uploaded to any server.
Yes. To go the other way, use our HSL to HEX converter.
Did you find this page helpful?
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance