Convert a HEX colour code to HSL (Hue, Saturation, Lightness) format for CSS.
Type or paste your colour value into the input field, or use the visual picker. Try the sample buttons for quick examples.
All output fields update instantly as you type. A colour preview swatch also updates in real time.
Click any Copy button to copy that specific value straight to your clipboard — ready to paste into your CSS, design tool or code.
Yes. All colour conversions happen entirely in your browser using JavaScript. No data is ever sent to a server.
Yes. All maths follows the official sRGB colour space formulas defined by the W3C and ICC. Rounding is done to standard precision.
HSL stands for Hue (0–360°), Saturation (0–100%) and Lightness (0–100%). It is a more human-readable way to describe colours than HEX or RGB.
HSL makes it easy to create colour variations — for example, adjusting only the lightness value lets you generate tints and shades without changing the hue.