Home / Color Tools / HSL to RGB Converter
Color Tools

HSL to RGB Converter

Enter hue, saturation, and lightness to calculate RGB.

—RGB
—HEX
—HSV
—CMYK

HSL to RGB: Round-Trip, HEX & Contrast Audit

Convert HSL to RGB and HEX with reverse HSL error, relative luminance and white or black contrast ratios for verification.

Quick-win verification depth

Color and accessibility boundaries

HEX/RGB/HSL/HSV/OKLCH conversions are numerical color-model operations. CMYK output is an RGB-derived approximation rather than ICC-profiled print proofing. WCAG contrast ratios measure luminance contrast only and do not certify a full interface. Color-blindness previews are design simulations, not medical tests.

Practical guide and verification

Use the tool first, then apply these checks to verify the inputs, interpret the result, and hand it off without displacing the primary workflow.

Normalize hue before conversion

Hue is circular, so values below zero or above 360 can represent a wrapped angle rather than a different concept. Decide whether the workflow should wrap or reject those values, and keep saturation and lightness bounded to the expected percentage range before comparing RGB output.

Expect small channel differences from rounding

HSL-to-RGB conversion uses fractional intermediate values that are commonly rounded to integer 0–255 channels for CSS. A reverse conversion can therefore return slightly different HSL numbers. Compare within the displayed precision instead of demanding character-for-character equality.

Check the resulting color where it will be used

RGB values do not establish readability by themselves. Test foreground/background combinations, hover and focus states, opacity, and neighboring colors in the actual interface. A conversion can be mathematically correct while the final design still has insufficient contrast or confusing state differentiation.

Do not silently cross color spaces

These values assume the ordinary sRGB interpretation used by common CSS colors. Wide-gamut displays, print workflows, ICC profiles, and color-science calculations can use different spaces and transfer functions. Preserve the source definition when a later step depends on colorimetric accuracy beyond sRGB.

Search by task, tool name, or category. Press Esc to close.
Start typing to find a tool.