HSL to RGB

Convert HSL to RGB. See worked examples, understand the conversion method, and check practical limits before using your result. Check the format first.

0 of 0 ratings

HSL to RGB color conversion

Use HSL to RGB when a design specification, stylesheet, or color editor needs a different representation of the same color. Start hexadecimal input with #, or use a lowercase rgb, rgba, hsl, hsla, or hsv function name. Select Submit, then check the target-format result before copying it.

How this conversion works

With saturation S and lightness L normalized to 0 through 1, chroma is (1 - |2L - 1|) × S. Hue determines the channel sector, and L minus half the chroma gives the channel offset. RGB output expresses the resulting channels directly. Check whether the output uses numbers, percentages, or a CSS function before pasting it into another application.

Worked color example

The sample hsl(210, 50%, 40%) corresponds to rgb(51, 102, 153) for the color coordinates illustrated here. Small differences in the final digits can result from rounding. This example explains the mathematical representation; it does not establish which input syntax this tool accepts.

Understand the formats

HSL describes hue, saturation, and lightness. Lightness is halfway between the largest and smallest normalized RGB channels, rather than a direct measure of perceived brightness. RGB represents red, green, and blue channels. In the 8-bit convention used by these examples, each channel runs from 0 to 255.

Transparency and rounding

Neither example has an explicit alpha channel. This conversion changes the way color coordinates are written. If you need transparency, use an alpha-capable representation and inspect its opacity value separately.

Frequently asked questions

Will the converted color look identical everywhere?

Equivalent coordinates describe the same color within the assumed color model. Displays, color profiles, surrounding colors, and backgrounds can affect appearance. Compare the result in the application where you will use it.

Can I interchange HSL lightness and HSV value?

No. They are different calculations. Recalculate the destination coordinates instead of moving the same percentages between HSL and HSV fields.

Related converters

Color converter tools | RGB to HSL | HSL to HEX | HEX to RGB

Similar tools

RGB to HSL

Convert RGB to HSL. See worked examples, understand the conversion method, and check practical limits before using your result. Check the format first.

Popular tools