ImageColorPicker.com

HSL to RGB converter

Convert any HSL color to RGB, instantly and for free

#F39C12

Paste any color value. We detect the format for you.

H
S
L
RGB result
rgb(243, 156, 18)
Red
243
Green
156
Blue
18

This color in every format

HSL is the friendly way to choose a color, RGB is what screens, canvas APIs and image code actually consume. This converter turns any hue, saturation and lightness triple into exact 0–255 channels.

How HSL to RGB conversion works

  1. Convert S and L to fractions and compute the chroma C = (1 − |2L − 1|) × S.
  2. Divide the hue by 60 to find its segment on the color wheel and compute the intermediate value X = C × (1 − |(H/60 mod 2) − 1|).
  3. Assign C, X and 0 to the R, G and B slots according to that segment.
  4. Add the lightness offset L − C/2 to all three channels and multiply by 255.

Worked example

HSL hsl(37, 90%, 51%)=RGB rgb(243, 156, 18)

The result is exact up to the final rounding to whole channels. Fractional hue or saturation values are supported and simply land on the nearest RGB triple.

HSL and RGB explained

What is HSL?

HSL splits a color into hue (0–360° on the color wheel), saturation (how colorful, 0–100%) and lightness (how bright, 0–100%). Because each part matches the way people describe color, HSL is the easiest format for building tints, shades and consistent palettes, by hand or in code.

Syntax:
hsl(H, S%, L%)
Range:
0–360°, 0–100%, 0–100%
Best for:
palettes, tints and shades, theming

What is RGB?

RGB describes a color as three channels of light (red, green and blue), each from 0 to 255. It mirrors how screens actually work: all three at 255 give white, all at 0 give black. RGB is the right choice whenever you need to calculate with a color, and rgba() adds transparency on top.

Syntax:
rgb(R, G, B)
Range:
0–255 per channel
Best for:
code, canvas, transparency with rgba()

HSL to RGB reference table

The most common CSS colors, converted from HSL to RGB.

ColorHSLRGB
blackhsl(0, 0%, 0%)rgb(0, 0, 0)
whitehsl(0, 0%, 100%)rgb(255, 255, 255)
redhsl(0, 100%, 50%)rgb(255, 0, 0)
limehsl(120, 100%, 50%)rgb(0, 255, 0)
bluehsl(240, 100%, 50%)rgb(0, 0, 255)
yellowhsl(60, 100%, 50%)rgb(255, 255, 0)
orangehsl(39, 100%, 50%)rgb(255, 166, 0)
tealhsl(180, 100%, 25%)rgb(0, 127, 128)
purplehsl(300, 100%, 25%)rgb(128, 0, 127)
grayhsl(0, 0%, 50%)rgb(128, 128, 128)

Frequently asked questions