HSL Color Converter
Convert between HSL, HEX, and RGB color codes with live preview
How to Use
- Drag the sliders or enter values directly to adjust H (Hue), S (Saturation), L (Lightness)
- View the corresponding HEX, RGB, HSL codes and color preview in real time
- Click the "Copy" button next to each format to copy the color code
- You can also enter a HEX code below to reverse convert to HSL
FAQ
What is the HSL color model?
HSL stands for Hue, Saturation, and Lightness. Hue is a 0-360 degree color wheel (0°=red, 120°=green, 240°=blue), Saturation 0-100% ranges from grayscale to full color, and Lightness 0-100% ranges from black to white. HSL is more intuitive than RGB for color adjustments.
What's the difference between HSL and HSV/HSB?
Both HSL and HSV (also called HSB) use hue, but define brightness differently. In HSL, L=50% is the pure color, L=0% is black, L=100% is white. In HSV, V=100% is the pure color, V=0% is black. HSL is more common in web design since CSS natively supports the hsl() function.
Why are the reverse-converted HSL values slightly different from the original?
This is because RGB uses discrete values (integers 0-255), while HSL conversion involves floating-point math. When converting HSL → RGB → HSL round-trip, rounding errors may cause H, S, L values to differ by 1-2 degrees/percent. This difference is virtually imperceptible in practice.