HSL color picker
Pick a color with hue, saturation and lightness, or paste a code you already have. Copy it as HEX, RGB or HSL, and check whether white or black text is readable on it.
HEX, rgb() or hsl().
- HEX
#7CF29C - RGB
rgb(124, 242, 156) - HSL
hsl(136, 82%, 72%)
Contrast (WCAG 2)
- White text
1.4:1
Fails
- Black text
15.04:1
Passes AAA
What HSL means
- Hue is the position on the color wheel, from 0° to 359°: red at 0°, green at 120°, blue at 240°.
- Saturation is how vivid the color is, from 0% (grey) to 100% (full color).
- Lightness runs from 0% (black) through 50% (the pure color) to 100% (white).
HSL describes the same colors as HEX and RGB, just in a way that's easier to adjust by hand: to make a color lighter, raise the lightness; to make it more muted, lower the saturation.
HEX, RGB and HSL
- HEX (#FF5733) writes red, green and blue as two hexadecimal digits each, from 00 to FF.
- RGB (rgb(255, 87, 51)) gives the same three channels as numbers from 0 to 255.
- HSL (hsl(11, 100%, 60%)) gives hue, saturation and lightness. Converting to it rounds to whole numbers, so a round trip can shift a channel by one.
All three work in CSS, so you can paste any of them straight into a stylesheet.
Contrast check
The contrast ratios use the WCAG 2 formula. For normal text, 4.5:1 passes level AA and 7:1 passes AAA. Large text (about 24px, or 19px bold) needs 3:1 for AA. This is a quick guide, not a full accessibility review.
Test your eye for color
Shade is our free daily color game: match a target color using these same three sliders, judged by eye. A new color every day, the same for everyone.
Everything runs in your browser. Nothing you enter is saved or sent anywhere.