Type a HEX code below to get its hsl() equivalent, ideal for building tints, shades, and accessible color systems by nudging lightness or saturation. The math runs entirely in your browser with no upload.

HSLhsl(238, 100%, 71%)
Worked HEX to HSL conversions
HEXHueSaturationLightness
#ff0000100%50%
#00ff00120°100%50%
#0000ff240°100%50%
#6c72ff237°100%71%
#8080800%50%
Worked example
#6c72ffhsl(237, 100%, 71%)

HEX is converted via RGB to the hue/saturation/lightness model.

Frequently asked questions

Why convert HEX to HSL?

HSL makes color relationships obvious: change the hue to shift the color, raise lightness for a tint, or lower saturation to mute it. That is much harder to reason about directly in HEX.

Is information lost converting HEX to HSL?

HSL values are rounded to whole numbers for readability, so converting back can differ by a single channel step. The visible color stays the same for practical purposes.

What does the hue degree represent?

Hue is an angle on the color wheel: 0° is red, 120° is green, and 240° is blue. Saturation and lightness then control how vivid and how light or dark that hue appears.

Does CSS support HSL directly?

Yes. Modern browsers accept hsl() and hsla() anywhere a color is expected, so you can often skip HEX entirely once you are comfortable with the model.

Related conversions

Need more options? Try the full Color Picker.