HSL to HEX
Convert HSL colour values (hue, saturation, lightness) into a HEX colour code, with RGB, HSV and CMYK equivalents. Free, instant hsl to hex converter for CSS.
Runs in your browser. Nothing is uploaded.
About HSL to HEX
Enter a hue in degrees and saturation and lightness as percentages to get the matching HEX code. Handy when you've designed a palette in HSL but a tool or brand guide needs hex.
A lightness of 0% is always black and 100% is always white, whatever the hue. 50% lightness with 100% saturation gives the purest version of a hue.
How to use HSL to HEX
- Enter your values in the fields.
- The answer updates instantly as you type.
- Press Copy result to save the breakdown.
Frequently asked questions
What hue numbers match which colours?
Roughly 0° red, 60° yellow, 120° green, 180° cyan, 240° blue and 300° magenta.
Why does my colour look grey?
Saturation is low. Raise it towards 100% for a more vivid colour.
Is HSL to HEX free and private?
Yes. HSL to HEX is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.