HSL to RGB converter

hsl(221, 83%, 53%) converts to rgb(36, 99, 235): use lightness and saturation to find the brightest and darkest channel, then place the hue between them.

To convert HSL to RGB, use lightness and saturation to find the brightest and darkest channel, then place the hue between them: hsl(221, 83%, 53%) is rgb(36, 99, 235). Paste any hsl() or hsla() value below to get rgb() or rgba().

How to convert HSL to RGB

For hsl(221, 83%, 53%), set L = 0.53 and S = 0.83, then find the brightest channel q = L + S − L×S = 0.92 and the darkest channel p = 2L − q = 0.14. The hue places each channel between p and q, and multiplying the three channel values by 255 gives 36, 99 and 235, so the result is rgb(36, 99, 235). For an hsla() value the alpha carries over unchanged, so hsla(221, 83%, 53%, 0.5) is rgba(36, 99, 235, 0.5).

HEX#2463eb
RGBrgb(36, 99, 235)
HSLhsl(221, 83%, 53%)

Common HSL to RGB values

ColorHSLRGBHEX
Whitehsl(0, 0%, 100%)rgb(255, 255, 255)#ffffff
Blackhsl(0, 0%, 0%)rgb(0, 0, 0)#000000
Redhsl(0, 84%, 60%)rgb(239, 67, 67)#ef4343
Bluehsl(221, 83%, 53%)rgb(36, 99, 235)#2463eb
Greenhsl(142, 71%, 45%)rgb(33, 196, 93)#21c45d
50% transparent bluehsla(221, 83%, 53%, 0.5)rgba(36, 99, 235, 0.5)#2463eb80

HSL to RGB converter FAQs

How do I convert HSL to RGB?

To convert HSL to RGB, use the lightness and saturation to find the brightest and darkest channel, then place the hue between them: hsl(221, 83%, 53%) is rgb(36, 99, 235). Paste any hsl() or hsla() value into the converter above to get the rgb() value with a live preview.

Does HSL to RGB keep transparency?

Yes, an hsla() value keeps its alpha when converted to RGB: the hue, saturation and lightness become the red, green and blue channels and the alpha carries over unchanged, so hsla(221, 83%, 53%, 0.5) becomes rgba(36, 99, 235, 0.5).

Is HSL or RGB better for CSS colors?

HSL is usually better for CSS colors because hue, saturation and lightness are intuitive to adjust and let you build shades and tints by changing one number, while RGB is better when you need exact channel values from a design tool. This converter gives you both from the same input.

Related color tools

More color tools

Image tools

CSS generators

Image & SVG tools

Typography & units

More free tools

All free tools