Have a color in mind but want to make it brighter or less vivid? The HSL method describes a color with three values: hue, saturation, and luminance. In CSS, you can put those values in `hsl()` to color text or other elements. section 17.1 section 17.6
Think of the three values as separate color controls:
- Hue picks a position on the color wheel, from 0 to 359 degrees. Red is at 0, green at 120, and blue at 240. section 17.1
- Saturation sets how pure the hue looks. At 100%, it is a pure color; as the percentage falls, it looks grayer. section 17.1
- Luminance sets how light or dark it looks. At 0%, the result is black; at 100%, it is white. section 17.1
Purple headings
`h1 { color: hsl(300, 100%, 25%); }` gives `h1` headings purple text. The first value chooses the hue; the next two set saturation and luminance. Try changing one value at a time to see which part of the color it controls. section 17.7 section 17.6
HSL also helps when choosing colors that work together. For example, red at `hsl(0, 100%, 50%)` and cyan at `hsl(180, 100%, 50%)` are complementary: their hues sit opposite each other on the color wheel. A monochrome scheme instead keeps one hue and varies saturation and luminance. section 17.15 section 17.16
Want to choose by eye? The Web Design Playground Color Chooser lets you adjust hue, saturation, and luminance, then shows the resulting `hsl()` value. For a quick challenge, try using `hsl()` to make an element blue, then white. section 17.14 section 17.8



