HSL Color Picker
HSL describes a color by hue (the position on the color wheel, 0-360 degrees), saturation (how vivid, 0-100%) and lightness (how light or dark, 0-100%). Drag the three sliders to build a color and copy the hsl() value straight into your CSS.
#9B59B6closest CSS name: mediumorchid
Closest CSS color mediumorchid #BA55D3
For example hsl(210, 100%, 56%)
Use 3 or 6 digits, for example #1E90FF or 19F
For example rgb(30, 144, 255) or 30 144 255
For example cmyk(88%, 44%, 0%, 0%)
Recent colors
Colors you pick appear here. They stay on this device.
By the Hex Color Picker Team. Updated
How to use the HSL color picker
- Set the hue first: 0 is red, 120 is green and 240 is blue, with every other color between them.
- Raise or lower saturation to make the color more vivid or more grey, then use lightness to make it lighter or darker.
- Paste an existing value such as hsl(282, 44%, 53%) into the HSL box to load it.
- Copy the hsl() string, or switch to any other format from the rows below the sliders.
Why designers like HSL
HSL separates the question "which color?" from "how light?" and "how vivid?". Keep the hue fixed and change only lightness, and you get a clean family of tints and shades of the same color. That's far harder to do with hex or RGB, where lightening a color means changing all three channels together.
A common pattern is to keep one hue and step lightness through a scale, for example 95%, 85%, 70%, 55%, 40% and 25%, for a button's hover, active and disabled states.
Lightness is not the same as brightness
At 50% lightness a color is at its purest. Moving toward 100% mixes in white, ending at white whatever the hue and saturation are. Moving toward 0% mixes in black. HSL lightness is a geometric measure, not how bright the color looks to the eye: yellow at 50% lightness looks much brighter than blue at 50%. If text contrast matters, check the actual contrast ratio rather than trusting the lightness number.
hsl() in CSS
CSS writes it as hsl(282, 44%, 53%), or hsl(282 44% 53%) in the newer space-separated form. The picker rounds hue, saturation and lightness to whole numbers, so converting a color to HSL and back can shift a channel by one step. The hex code is the exact value when you need an unambiguous record of a color.
Common questions
What are the HSL values for black, white and grey?
Black is hsl(0, 0%, 0%), white is hsl(0, 0%, 100%), and any grey has 0% saturation, for example hsl(0, 0%, 50%) for mid-grey. Hue doesn't matter when saturation is 0%.
Why can a hex-to-HSL-and-back round trip change a value?
HSL is displayed in whole numbers, so some of the 16.7 million hex colors can't be represented exactly. The change is at most one step in a channel and is not visible to the eye.