Hex to HSL Converter

To convert hex to HSL, first read the hex code as RGB, then find the hue (the color's angle on the wheel, 0–360°), saturation (how vivid it is), and lightness (how bright it is). For example, #FF0000 is hsl(0, 100%, 50%).

Convert a hex color code to HSL values instantly. Type a hex code and get hue, saturation, and lightness with one click to copy.

—
Preview:

How hex to HSL conversion works

HSL describes a color the way people think about it: hue is the position on the color wheel (0° is red, 120° is green, 240° is blue), saturation is how vivid or gray it is (0% is gray, 100% is full color), and lightness is how bright it is (0% is black, 50% is the pure color, 100% is white). To convert, read the hex code as RGB, then compute hue from which channel is largest, saturation from the spread between the largest and smallest channels, and lightness from their average.

HSL is the easiest format for making shades and tints: keep the hue and saturation, and lower the lightness for a darker shade or raise it for a lighter tint.

Frequently asked questions

What is the HSL of #FF0000?

The HSL of #FF0000 is hsl(0, 100%, 50%) — hue 0° (red), full saturation, halfway lightness.

What does HSL stand for?

HSL stands for Hue, Saturation, Lightness. Hue is the color's angle on the wheel, saturation is its vividness, and lightness is its brightness.

Why use HSL instead of hex?

HSL makes it easy to adjust a color: change the lightness to make shades and tints, or the saturation to mute it, without changing the hue.

Related tools

Color Converter (all formats) · Hex to RGB · RGB to Hex · Hex to HSL · HSL to Hex · Color Picker