Skip to the color picker
PickShade

HSL to RGB converter

Paste a HSL value, get RGB instantly. Any other format works too.

Read as HSL

RGB valuergb(255 87 51)
RGB to HSL

Every other format

HSL to RGB examples

ColorHSLRGB
hsl(0 100% 50%)rgb(255 0 0)
hsl(120 100% 50%)rgb(0 255 0)
hsl(240 100% 50%)rgb(0 0 255)
hsl(0 0% 100%)rgb(255 255 255)
hsl(0 0% 0%)rgb(0 0 0)
hsl(0 0% 50.2%)rgb(128 128 128)
hsl(10.59 100% 60%)rgb(255 87 51)
hsl(217.22 91.22% 59.8%)rgb(59 130 246)
hsl(160.12 84.08% 39.41%)rgb(16 185 129)
hsl(37.69 92.13% 50.2%)rgb(245 158 11)
hsl(258.31 89.53% 66.27%)rgb(139 92 246)
hsl(330.37 81.19% 60.39%)rgb(236 72 153)

About HSL and RGB

HSL describes hue in degrees, saturation and lightness in percent. It is easy to read, but its lightness is not perceptually even: yellow at 50% looks much lighter than blue at 50%.

RGB sets red, green and blue from 0 to 255. It describes how a screen mixes light and is written as rgb(255 87 51) in modern CSS.

How the conversion works

We read the HSL value, convert it to CIE XYZ with the matrices from the CSS Color 4 specification and then into RGB. Values outside the target gamut are mapped by the CSS Color 4 algorithm, which keeps lightness and hue and reduces chroma.

Questions and answers

How do I convert HSL to RGB?

Paste or type a HSL value into the field above. PickShade converts it with the CSS Color 4 formulas as you type, and one click copies the RGB value.

Is the HSL to RGB conversion exact?

The math is exact and the result is rounded only for display, with enough digits to convert back to the same color. If the color does not fit the target gamut, PickShade warns you and shows the nearest color that fits.

Can I get other formats at the same time?

Yes. Every other format, including OKLCH, Display P3, Tailwind, SwiftUI, Flutter and Android, is listed below the result and copies with one click.

Is this converter free?

Yes. It is free, needs no sign-up and runs entirely in your browser.