HSL to RGB
Convert your HSL color format to RGB format.
About this tool
Type or paste an HSL color, or choose one with the picker, and the converter shows it as RGB as you type, with a preview and every other format underneath, each with its own copy button. It reads colors written in any of the formats, and color names like “tomato”, too.
How to convert HSL to RGB
To turn HSL into red, green and blue, the hue picks a point on the color wheel, the saturation sets how far the color is from gray, and the lightness moves it between black and white. RGB writes the three channels as they are: rgb(168, 208, 141).
HSL to RGB examples
| Color | HSL | RGB |
|---|---|---|
| Sage green | hsl(96, 42%, 68%) |
rgb(168, 208, 141) |
| Red | hsl(0, 100%, 50%) |
rgb(255, 0, 0) |
| Tomato | hsl(9, 100%, 64%) |
rgb(255, 99, 71) |
| Gold | hsl(51, 100%, 50%) |
rgb(255, 215, 0) |
| Dodger blue | hsl(210, 100%, 56%) |
rgb(30, 144, 255) |
| Indigo | hsl(275, 100%, 25%) |
rgb(75, 0, 130) |
| Black | hsl(0, 0%, 0%) |
rgb(0, 0, 0) |
| White | hsl(0, 0%, 100%) |
rgb(255, 255, 255) |
What is HSL?
HSL describes a color by its hue (0 to 360 degrees on the color wheel), saturation and lightness. It’s easy to adjust by hand: keep the hue and change the lightness to get lighter and darker shades of the same color. CSS accepts it directly.
What is RGB?
RGB writes a color as its red, green and blue channels, each from 0 to 255, the way screens make color by mixing light. rgb(0, 0, 0) is black and rgb(255, 255, 255) is white.