hexcolors

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

ColorHSLHEX
redhsl(0, 100%, 50%)#FF0000
orangehsl(39, 100%, 50%)#FFA500
goldhsl(51, 100%, 50%)#FFD700
limehsl(120, 100%, 50%)#00FF00
tealhsl(180, 100%, 25%)#008080
navyhsl(240, 100%, 25%)#000080
indigohsl(275, 100%, 25%)#4B0082
purplehsl(300, 100%, 25%)#800080
hotpinkhsl(330, 100%, 71%)#FF69B4
coralhsl(16, 100%, 66%)#FF7F50
chocolatehsl(25, 75%, 47%)#D2691E
grayhsl(0, 0%, 50%)#808080
silverhsl(0, 0%, 75%)#C0C0C0
blackhsl(0, 0%, 0%)#000000

How to use it

Three quick steps.

  1. Type or paste a HSL value.
  2. Read the HEX result instantly.
  3. 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.