Galham › HSL → HEX

HSL to HEX Converter

Pick a colour by hue, saturation and lightness, then copy it as HEX, RGB or CSS. Drag the lightness slider to see lighter and darker shades of the same colour.

Why use HSL

In HSL, the base colour stays the same while you change how light or strong it is. That makes it much easier to create hover states, borders and backgrounds that match. For example, hsl(243, 75%, 59%) is our indigo, and hsl(243, 75%, 90%) is a pale version of it.

Common questions

What do hue, saturation and lightness mean?

Hue is the position on the colour wheel, from 0 to 360° (0 is red, 120 is green, 240 is blue). Saturation is how vivid the colour is, from 0% grey to 100% full colour. Lightness runs from 0% black to 100% white, with 50% being the pure colour.

How do I make a colour lighter in CSS?

Write it in HSL and raise the lightness value. You can also use color-mix(in srgb, #4F46E5, white 30%), which works in all current browsers.

Keep going with this colour

More Galham tools