This converter converts RGB color values to HSL. Enter values and the result appears instantly.

HSL (Hue, Saturation, Lightness) is an alternative way to specify colors that is more intuitive for humans. Hue is the color angle (0–360°), Saturation is the color intensity (0–100%), and Lightness is how light/dark (0–100%).
HSL makes it easy to create color variations: adjust lightness for tints/shades, adjust saturation for muted/vivid versions, or shift hue for complementary colors.
CSS supports hsl() natively: hsl(14, 100%, 60%) is equivalent to rgb(255, 87, 51) and #FF5733.
All calculations run locally in your browser — nothing is sent to any server.
hsl(217, 91%, 60%) — intuitive color notation.Normalize R, G, B to 0–1. Find max and min channel values. L = (max + min) / 2. S depends on L: if L ≤ 0.5, S = (max−min)/(max+min); if L > 0.5, S = (max−min)/(2−max−min).
Hue depends on which channel is max: if R is max, H = (G−B)/(max−min); if G is max, H = 2 + (B−R)/(max−min); if B is max, H = 4 + (R−G)/(max−min). Multiply by 60°.
HSL is fully reversible — converting HSL back to RGB produces the exact same color.
| Feature | RGB | HSL |
|---|---|---|
| Model | Additive channels | Hue/Saturation/Lightness |
| Values | 0–255 per channel | H: 0–360°, S/L: 0–100% |
| Intuitive | Hard to predict colors | Easy to adjust colors |
| Color theory | Not color-wheel based | Maps to color wheel |
| CSS support | rgb(R, G, B) | hsl(H, S%, L%) |

Have an idea, found a bug, or want to suggest a feature? Drop us a message – we respond within 24 hours.