About HEX to HSL Converter
HSL describes a colour by hue (the position on the colour wheel from 0 to 360 degrees), saturation (how vivid it is) and lightness (how light or dark). It is often easier to reason about than HEX because you can change one number to get a lighter, darker or more muted version of the same colour.
Enter a HEX code with or without the hash sign, in three or six digits, and the tool returns the HEX, RGB and HSL forms. Use the hsl() value in CSS or build a set of tints and shades for a design system.
How to use HEX to HSL Converter
- Enter a HEX colour such as #ff4830.
- Click Run Tool to convert it.
- Copy the hsl() value, or adjust its lightness to create variations.
Example
Input
#ff4830
Output
HEX #FF4830 RGB rgb(255, 72, 48) HSL hsl(7, 100%, 59%)
Common uses
- Building colour scales from a single brand colour.
- Creating hover and active states by lowering the lightness of a button colour.
- Converting a colour from a style guide into the format a framework uses.
Privacy and safety
This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.
Frequently asked questions
What do the three HSL numbers mean?
Hue is the angle on the colour wheel, saturation is the intensity from 0 to 100 percent, and lightness runs from 0 percent (black) to 100 percent (white).
Why is the HSL value rounded?
The values are rounded to whole numbers for readability, so converting back may differ by one step in HEX.
Is HSL supported in all browsers?
Yes. hsl() has been supported in every modern browser for many years.