Skip to content
toolgrid

No tool found. Try another word.

HSL to RGB Converter

Convert hue, saturation and lightness to RGB and hex, with sliders to explore the color live.

  • rgb
  • hex
  • hsl
  • hwb
  • oklch
  • cmyk

Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.

How to use the HSL to RGB Converter

  1. 1 Set the hue (0–360), saturation and lightness (0–100%).
  2. 2 Watch the swatch and RGB value update.
  3. 3 Copy the rgb(), hex or other value.

About the HSL to RGB Converter

The converter uses the CSS Color 4 formula: lightness sets how far between black and white the color sits, saturation how far it is from gray, and the hue picks the position on the color wheel.

Hues wrap around the circle, so -30 is the same as 330 and 720 is the same as 0. Saturation and lightness are limited to 0–100%.

RGB values are rounded to whole numbers for rgb() and hex, which is how browsers store colors; the other formats are calculated from the exact values.

Frequently asked questions

How do I get white or black in HSL?

Lightness 100% is always white and 0% always black, whatever the hue and saturation.

Why do two HSL values give the same hex?

Hex has 256 steps per channel, so very close HSL values can round to the same color.

What is the hue of red, green and blue?

Red 0°, green 120°, blue 240°.

Does HSL lightness match perceived brightness?

Not exactly: yellow at 50% looks much brighter than blue at 50%. OKLCH lightness matches perception better.