Output will appear here
Click in the output to select all text
Output will appear here
Click in the output to select all text
Convert HSL color values to standardized HEX codes.
Convert HEX color codes (#RRGGBB, #RGB) to RGB / RGBA values.
Convert RGB colors to Hue, Saturation, and Value (HSV / HSB).
Convert simultaneously across HEX, RGB, RGBA, HSL, HSLA, HSV, CMYK, and HWB formats.
Visual color picker showing real-time HEX, RGB, HSL, HSV, and CMYK formats.
All-in-one generator for complementary, analogous, triadic, split-complementary, and tetradic schemes.
This HEX to HSL converter translates any hexadecimal color code into its equivalent Hue, Saturation, and Lightness values, the format many designers prefer because it's more intuitive to reason about than raw RGB numbers. It's especially useful for developers building CSS themes with hsl() variables, and for designers who want to tweak a color's lightness or saturation without guessing new hex digits. Simply enter a hex code and the tool immediately calculates the corresponding hue in degrees (0-360) along with saturation and lightness as percentages, displaying a live swatch alongside the numbers. Everything happens client-side in your browser - there's no server round trip, no file upload, and no account needed, so your palette stays completely private. The conversion follows the standard HSL color model formulas exactly, so the values you get match what you'd see in browser dev tools or design software. Start converting your hex codes to HSL using the tool below.
First convert hex to RGB, normalize each channel to a 0-1 range, then apply the standard RGB-to-HSL formula to get hue, saturation, and lightness. This tool automates that entire process.
HSL makes it easy to create color variations by adjusting a single value, like lightening or darkening a color by only changing the lightness percentage.
Pure red (#ff0000) converts to hsl(0, 100%, 50%).
Neither is more accurate - they represent the same color space, just in different formats. HSL is simply more intuitive for humans to adjust manually.
Yes, CSS supports hsla() and the newer hsl() with a slash-separated alpha value for transparency.
Hue is typically rounded to the nearest whole degree for readability, since fractional degrees rarely make a visible difference.