Sub topic 4
Saturation: how pure or muted a color is
This chapter assumes you know what hue is (the color family, such as blue or orange) and that screens mix red, green, and blue light. You should also be able to read short CSS and Python snippets.
What saturation measures
Saturation describes how pure or intense a color looks. A fully saturated color is as vivid as that hue can be. As saturation drops, the color mixes with gray and looks duller, until only a neutral gray is left. The hue does not change along the way. A saturated blue and a muted blue are the same family. They differ in intensity.
Saturation is separate from lightness. A pale pink can be highly saturated in the numeric sense, and a dark gray-blue can be nearly neutral. Keep the two ideas apart, because many tools show them on separate sliders.
Seeing saturation in CSS
In HSL, the second number is saturation. This example holds hue at 210 and lightness at 45%, and changes only saturation.
:root {
--brand-hue: 210;
--brand: hsl(var(--brand-hue) 80% 45%);
--brand-muted: hsl(var(--brand-hue) 25% 45%);
--brand-gray: hsl(var(--brand-hue) 0% 45%);
}--brand is a strong blue. --brand-muted is a dusty blue-gray. --brand-gray has 0% saturation, so the hue is irrelevant and the result is a plain gray.
Changing saturation in code
The Python standard library converts between RGB and HSV. All values run from 0 to 1.
import colorsys
r, g, b = 0.2, 0.4, 0.8
h, s, v = colorsys.rgb_to_hsv(r, g, b)
print(round(h * 360), round(s, 2), round(v, 2)) # 220 0.75 0.8
# Halve the saturation, keep hue and value
r2, g2, b2 = colorsys.hsv_to_rgb(h, s * 0.5, v)
print(round(r2, 2), round(g2, 2), round(b2, 2)) # 0.5 0.6 0.8The red channel rises and the green channel rises toward the blue channel. The three channels move closer together, and that is what muting a color means numerically. When all three are equal, the color is gray.
What saturation does in a design
Saturation controls attention and mood.
- Attention: a saturated color stands out against muted surroundings. One vivid button on a calm page draws the eye.
- Mood: high saturation feels energetic or playful. Low saturation feels quiet, serious, or natural.
- Cohesion: colors with similar saturation tend to look like they belong together, even when their hues differ.
Common errors
- Saturating everything. If every element is vivid, nothing stands out. Reserve high saturation for small areas.
- Muting by adding black. Darkening lowers value, not saturation. To mute a color, move toward gray.
- Trusting the number across models. HSL and HSV define saturation differently. The same 80% gives different results in each, so do not copy values between tools without converting.
- Expecting hue to matter at 0%. A color with no saturation has no visible hue.
Exercise
In the CSS hsl(30 60% 50%), which number do you change to make the color look more muted without making it lighter or darker, and what happens at 0%?
Show answer
Change the second number, saturation (60%). Lowering it moves the color toward gray while hue and lightness stay the same. At 0% the result is a pure gray, and the hue value (30) has no visible effect.
Exercise
A designer wants a dusty version of a bright red button for a disabled state. Should they add black or reduce saturation, and why?
Show answer
Reduce saturation. Adding black lowers value and produces a darker red that is still intense. Reducing saturation keeps the hue and brightness but moves it toward gray, which reads as inactive.