HSL to HEX Converter
Convert HSL (hue, saturation, lightness) values directly to a 6-digit hex color code.
If you've designed a color by reasoning in HSL — rotating hue for a palette, dialing in lightness for contrast — this gives you the final hex code to paste into CSS, without a separate stop at RGB first.
Example: hsl(25°, 95%, 53%) — a warm orange — resolves directly to #fb7e1b, ready to drop into a CSS custom property.
How it works
- Drag the hue, saturation, and lightness sliders
- It's converted HSL → RGB → hex in one step on your device
- Copy the resulting 6-digit hex code
Frequently asked questions
Can I type HSL values directly into CSS?
Yes — modern CSS accepts hsl(243deg 75% 59%) (or the older comma-separated hsl(243, 75%, 59%) syntax) anywhere a color is expected, no conversion to hex required if you'd rather keep working in HSL.
Why convert HSL directly to hex instead of going through RGB first?
Convenience — some tools and older codebases only accept hex, so if you designed a color by reasoning in HSL terms, this skips manually reading off the intermediate RGB numbers.
Is my color values uploaded anywhere?
No — HSL to HEX Converter runs entirely in your browser using JavaScript/WebAssembly. Your color values is never sent to a server.