Tools / HSL to HEX converter
HSL to HEX converter
Paste a HSL value and get the HEX result right away, plus every other format.
How HSL converts to HEX
Use the hue to choose which two channels carry the color, scale by saturation and lightness to get red, green and blue, then write each as a two-digit hex value. hsl(210, 100%, 56%) is about #1E90FF.
Common colors in HSL and HEX
| Color | HSL | HEX |
|---|---|---|
| red | hsl(0, 100%, 50%) | #FF0000 |
| orange | hsl(39, 100%, 50%) | #FFA500 |
| gold | hsl(51, 100%, 50%) | #FFD700 |
| lime | hsl(120, 100%, 50%) | #00FF00 |
| teal | hsl(180, 100%, 25%) | #008080 |
| navy | hsl(240, 100%, 25%) | #000080 |
| indigo | hsl(275, 100%, 25%) | #4B0082 |
| purple | hsl(300, 100%, 25%) | #800080 |
| hotpink | hsl(330, 100%, 71%) | #FF69B4 |
| coral | hsl(16, 100%, 66%) | #FF7F50 |
| chocolate | hsl(25, 75%, 47%) | #D2691E |
| gray | hsl(0, 0%, 50%) | #808080 |
| silver | hsl(0, 0%, 75%) | #C0C0C0 |
| black | hsl(0, 0%, 0%) | #000000 |
How to use it
Three quick steps.
- Type or paste a HSL value.
- Read the HEX result instantly.
- Click any value to copy it.
Good to know
Get better results.
- You can also paste a hex code, rgb(), hsl() or a color name. The tool understands them all.
- Every other format is shown too, so one lookup covers all your needs.
- Values are rounded to whole numbers where it makes sense.
Common questions
How do I convert HSL to HEX?
Use the hue to choose which two channels carry the color, scale by saturation and lightness to get red, green and blue, then write each as a two-digit hex value. hsl(210, 100%, 56%) is about #1E90FF.
Is this HSL to HEX converter free?
Yes. It is free, private and runs in your browser, so your colors are never uploaded.
Can I convert from other formats too?
Yes. Enter a hex code, rgb(), hsl() or a CSS color name and you still get every format.
More tools
Keep going with a related tool.