Toolvist

HSL to HEX / RGB Converter

Convert color values between HSL, HEX, and RGB formats.

Free HSL to HEX / RGB Converter

The HSL Converter translates colors between HSL, HEX, and RGB formats instantly. Adjust the hue, saturation, and lightness, or enter any format, and the others update in real time.

The neighbouring conversions are the HEX to RGB / RGB to HEX Converter and the RGB to CMYK Converter. To check the result against accessibility requirements, the Color Contrast Checker is the verification step.

How to use the HSL Converter

  1. 1 Enter your colour in any field — hex, RGB, or HSL — and the other two update together.
  2. 2 Drag the saturation and lightness sliders to explore variations of the same hue without leaving the hue you picked.
  3. 3 Read the three HSL numbers as three separate jobs: hue is which colour, saturation is how vivid, lightness is how dark or light.
  4. 4 Copy whichever notation your stylesheet needs.

The three numbers, and the trap in lightness

Hue is an angle from 0 to 360 degrees on a colour wheel, with red at 0, green at 120 and blue at 240. Saturation runs from 0% for grey to 100% for the purest form of the hue. Lightness runs from 0% for black, through 50% for the most saturated form, to 100% for white.

That last one is the part people get wrong. Setting lightness to 80% does not give you a light tint of your colour so much as a pale, desaturated version of it, because at high lightness the space available for saturation shrinks. When you want a lighter tint, adjust lightness in small steps and watch the saturation follow.

  • Hue is a circle, so 360 is the same as 0.
  • Modern CSS also accepts `hsl(210 90% 40%)` with no commas and an optional `/ 50%` alpha.
  • To darken for a hover state, reduce lightness by 8–12%, not saturation.

Frequently asked questions

Why would I use HSL instead of hex or RGB?

HSL separates the three properties a designer actually reasons about. Want the same blue but 20% darker? Change one number and the hue is untouched. In hex you would have to recalculate all three channels and would probably drift the hue doing it. That property makes HSL much better for building a palette and for generating hover and border shades programmatically.

Does HSL cover the same range of colours as RGB?

It covers exactly the same set. HSL is a coordinate transform of RGB, not a different gamut, so every sRGB colour has an HSL representation and vice versa. What it does not do is reach outside sRGB — for the wider gamut you need `lab()`, `lch()` or `oklch()`, which describe perceptual lightness more faithfully.

Why does `hsl(0, 0%, 50%)` look like grey while `hsl(0, 100%, 50%)` is a vivid red?

Because lightness and saturation act independently. At zero saturation the hue becomes irrelevant and every value collapses to grey. At 100% saturation the hue is at full purity, and 50% lightness places it at the brightest point for that hue in sRGB.

Related Image & Color Tools

Browse all Image & Color Tools →

You might also need

Tools from other categories that people pair with the HSL Converter:

Browse the full tool directory →