What Is HSL Color? How Hue, Saturation and Lightness Work
Learn what HSL color is and how hue, saturation and lightness help you pick shades and tints that look good together.
HSL is a way of describing color that matches how people actually think about it. Instead of mixing red, green and blue light, you start with a color on a wheel, then decide how strong it should be and how light or dark it should look. That makes HSL one of the easiest models for picking shades, tints and matching colors for a website.
HSL stands for Hue, Saturation and Lightness. The three values work together. Hue picks the color itself. Saturation controls how vivid or muted it is. Lightness controls how close it is to white or black. Change one value at a time and you can see exactly what happens.
What Is HSL Color?
Think of HSL as three simple questions. What color is it? How strong is it? How light or dark is it? Answer those three questions and you have described any color.
Hue is the color around the wheel: red, orange, yellow, green, blue, purple and back to red. Saturation is the intensity. A fully saturated color is bold and pure. A color with low saturation looks washed out or grey. Lightness is the brightness. Raise it and the color moves toward white. Lower it and the color moves toward black.
Hue: The Color on the Wheel (0 to 360)
Hue is measured in degrees around a color wheel, from 0 to 360. Red sits at 0 degrees, and also at 360, because the wheel joins up at the end. Yellow is near 60, green near 120, cyan near 180, blue near 240 and magenta near 300.
Here are some common hue values to remember:
| Hue | Color | Example Use |
|---|---|---|
| 0 | Red | Alerts, sale badges |
| 30 | Orange | Warm call-to-action buttons |
| 60 | Yellow | Highlights, warnings |
| 120 | Green | Success messages, nature themes |
| 210 | Blue | Links, trust and calm designs |
| 270 | Purple | Creative or premium brands |
| 330 | Pink | Playful or soft designs |
Saturation: How Vivid or Muted the Color Is
Saturation is a percentage from 0% to 100%. At 100%, the color is at its most vivid. At 0%, it has no color at all and becomes a shade of grey. Values in the middle give softer, more muted colors.
Saturation has a big effect on mood. High saturation feels bold, energetic and attention-grabbing. It works well for buttons, badges and highlights, but it can feel tiring if it covers a whole page. Low saturation feels calm, soft and professional. It works well for backgrounds, cards and large areas of text.
Lightness: How Light or Dark the Color Is
Lightness is also a percentage from 0% to 100%. At 0%, the color is black, no matter what the hue or saturation is. At 100%, it is white. At 50%, you get the pure, most vivid version of the hue.
Lightness is the easiest way to make shades and tints. Keep the hue and saturation the same, then lower the lightness for a darker shade or raise it for a lighter tint. For example, a blue with the same hue and saturation can become a deep navy at low lightness, a clear mid-blue at 50%, and a pale sky blue at high lightness.
How to Write HSL in CSS
In CSS, you write an HSL color with the hsl() function. The hue is a number from 0 to 360, and saturation and lightness are percentages.
/* A clear mid-blue */
.button {
background-color: hsl(210, 100%, 50%);
color: white;
}
/* A darker shade of the same blue */
.button:hover {
background-color: hsl(210, 100%, 40%);
}
/* A light tint for a card background */
.card {
background-color: hsl(210, 60%, 92%);
}
Notice how little changes between those three rules. The hue stays at 210, so the color family stays the same. Only the lightness and saturation move. That small change creates a button, a hover state and a background that clearly belong together.
When to Use HSL
Use HSL when you are choosing colors, building a palette, or creating variations of one color. It is the best model for answering questions such as: how do I make this blue darker, lighter or softer? With RGB, those changes mean adjusting three numbers at once. With HSL, you change one number.
RGB, by contrast, is useful when you need to read the exact red, green and blue channels, or when a tool gives you values in that form. The two models describe the same colors, so you can switch between them. Learn the basics of the related HEX format in our guide to what a HEX color code is, and explore ready-made combinations with the free color palette generator.
HSL is also a good choice when you want a consistent look across a site. Pick one or two hues for your brand, then use lightness and saturation to create the full range. That habit keeps colors related and stops a design from drifting into too many unrelated shades.
Try it yourself with the free online color picker on Front Design Tool. Pick a hue, slide the saturation and lightness, and watch the same color turn into a shade, a tint or a soft background. Once you feel how the three values work, building a clean color scheme becomes much faster.