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 build colors from red, green, and blue light. You should also be able to read short CSS and Python snippets. Here you will learn what saturation measures, how it behaves in numbers, and how to use it deliberately.
What saturation measures
Saturation describes how pure or intense a color looks compared with a neutral gray of similar lightness. At full saturation, a hue appears as vivid as it can be. As saturation falls, the color looks more washed out, dusty, or gray. At zero saturation, no hue is left and you see only a gray.
Saturation is separate from hue and value. A saturated blue and a muted blue share a hue. A saturated dark blue and a saturated light blue share a saturation setting but differ in value. Designers also say "chroma", "intensity", or "colorfulness" for related ideas. Strictly, these are not identical, and the last section covers one difference.
| Saturation | Common description | Typical use |
|---|---|---|
| 0% | Neutral gray | Text, borders, backgrounds |
| 10–30% | Barely tinted, near-neutral | Soft backgrounds, "warm gray" or "cool gray" surfaces |
| 30–60% | Muted, dusty, natural | Large areas, photography-like palettes, calm interfaces |
| 60–85% | Clear and lively | Brand colors, buttons, illustrations |
| 85–100% | Vivid, loud | Small accents, alerts, highlights |
These ranges are rules of thumb. The same number looks different in different hues and at different lightness levels, as the later sections explain.
Saturation in the RGB numbers
In RGB, a color is three channel values. Saturation relates to how far apart the largest and smallest channels are.
- If all three channels are equal, such as (128, 128, 128), the color is gray and saturation is 0.
- If one channel is high and the others are near zero, such as (255, 0, 0), the channels are far apart and saturation is high.
- Moving the channels toward each other lowers saturation. Moving them apart raises it.
This is why desaturating a color pulls its channels toward a common middle value. The hue is the order and balance of the channels. Saturation is how strongly they differ.
Measuring saturation with code
The colorsys module in Python's standard library converts RGB to HSV. All values run from 0 to 1. The script below measures HSV saturation for a few colors.
import colorsys
def hsv_saturation(r, g, b):
return colorsys.rgb_to_hsv(r, g, b)[1]
samples = {
"pure red": (1.0, 0.0, 0.0),
"pink": (1.0, 0.5, 0.5),
"dark red": (0.5, 0.0, 0.0),
"gray": (0.5, 0.5, 0.5),
"medium blue": (0.2, 0.4, 0.8),
}
for name, rgb in samples.items():
print(name, round(hsv_saturation(*rgb), 2))The output is:
pure red 1.0
pink 0.5
dark red 1.0
gray 0.0
medium blue 0.75Two results matter here. Dark red has full saturation even though it looks dull and heavy. Saturation does not mean brightness. Pink has only half the saturation of pure red, and it is also lighter. In HSV, adding white lowers saturation, which is how pale tints end up with low values on this axis.
Changing saturation while keeping hue and value
To mute a color, convert it to a model that separates saturation, scale that one number, and convert back.
import colorsys
r, g, b = 0.2, 0.4, 0.8 # a medium blue
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 hue stays at 220 degrees and the brightest channel stays at 0.8. The red channel rose from 0.2 to 0.5 and the green channel rose from 0.4 to 0.6. The three channels moved closer together. Run the example and you will see the blue become softer but remain blue.
Scaling by a factor works well for quick experiments. For production code, clamp the result so it stays between 0 and 1. A factor above 1 on an already vivid color will push s past its maximum.
Saturation in CSS
CSS has a direct way to control saturation through the hsl() function. Its second argument is saturation, written as a percentage.
:root {
--hue: 210;
}
.swatch-100 { background: hsl(var(--hue) 100% 50%); }
.swatch-75 { background: hsl(var(--hue) 75% 50%); }
.swatch-50 { background: hsl(var(--hue) 50% 50%); }
.swatch-25 { background: hsl(var(--hue) 25% 50%); }
.swatch-0 { background: hsl(var(--hue) 0% 50%); }All five swatches have the same hue and the same lightness. Only saturation changes, so they step from vivid blue down to a mid gray. Storing hue in a custom property means you can change the color family everywhere without touching the saturation steps.
At 0% saturation the hue number is ignored. hsl(0 0% 50%) and hsl(210 0% 50%) are the same gray.
Why saturation is not the same in HSV and HSL
HSV and HSL both have an "S" value, but they define it differently. HSV saturation compares the color with white at the same maximum channel. HSL saturation compares it with a gray at the same lightness, and it is forced toward zero near black and white.
You can see this by converting the same blue both ways.
import colorsys
r, g, b = 0.2, 0.4, 0.8
h, s_hsv, v = colorsys.rgb_to_hsv(r, g, b)
h2, l, s_hsl = colorsys.rgb_to_hls(r, g, b)
print("HSV saturation:", round(s_hsv, 2)) # 0.75
print("HSL saturation:", round(s_hsl, 2)) # 0.6
print("HSL lightness:", round(l, 2)) # 0.5The same color gives 75% saturation in HSV and 60% in HSL. Neither number is wrong. They answer different questions. Never copy a saturation percentage from an HSV picker into an hsl() function and expect the same color. Convert the color instead. Note also that rgb_to_hls returns lightness before saturation, so the order differs from the CSS function name.
Edge cases and gotchas
- Hue becomes undefined at zero saturation. A gray has no hue, so converters return an arbitrary value, often 0. Do not read meaning into it.
- Hue is also meaningless at black. In HSV, any color with value 0 is black, whatever its hue and saturation. In HSL, the same holds at lightness 0% and at 100% (white).
- Saturation settings are not equally strong across hues. At the same HSL saturation and lightness, yellow looks much lighter and more intense than blue. Equal numbers do not mean equal appearance.
- The screen limits saturation. Standard sRGB cannot display the most vivid colors your eyes can see, and the pure blue and red of a display look different from the pure green. Wide-gamut displays can show more saturated colors than sRGB values describe.
- Strong colors fight each other. Two highly saturated colors next to each other can appear to vibrate, especially complementary pairs such as red and green. Muting one of them usually fixes this.
- Desaturating all the way is not a grayscale conversion. Setting saturation to zero in HSV or HSL does not preserve how light the original looked. Chapter-level discussion of perceived lightness comes later.
Using saturation deliberately
Think of saturation as a control for emphasis and mood.
- Emphasis. A single saturated element on a muted page draws the eye. The more muted the surroundings, the stronger the accent appears.
- Mood. Low saturation reads as calm, serious, or vintage. High saturation reads as energetic, playful, or urgent.
- Depth and distance. In illustration, distant objects are often less saturated than near ones. This imitates how air softens far-off color.
- Neutrals with character. A gray with 5–10% saturation and a consistent hue feels warmer or cooler than a pure gray, and it blends better with a branded palette.
- Consistency. Keep saturation in a narrow range across a palette's main colors. Large jumps make colors look as if they belong to different designs.
Saturation also feeds directly into the next ideas in this tutorial. Lowering saturation by mixing in gray makes tones. Combined with changes in value, it yields the tints, tones, and shades of a single hue.
Exercise
A color picker in HSV mode shows S = 80% for a dark navy swatch. A teammate says the swatch must be vivid because 80% is a high saturation. Is that correct, and what should you check?
Show answer
Not necessarily. In HSV, saturation says how far the channels are spread, not how bright the color looks. A dark navy can have high saturation and still look deep and subdued because its value is low. Check the V (value) setting too, and look at the swatch itself. If you need to reproduce it in CSS, convert it to HSL first, because the HSL saturation percentage will differ from the HSV one.
Exercise
Write the CSS for three buttons that share hue 150 and lightness 40%, with HSL saturation of 80%, 50%, and 20%. Which one best fits a disabled state, and why?
Show answer
Example CSS: .btn-a { background: hsl(150 80% 40%); }, .btn-b { background: hsl(150 50% 40%); }, .btn-c { background: hsl(150 20% 40%); }. The 20% version fits a disabled state best. It keeps a faint tie to the brand hue but looks muted and recessive, so it signals that the button is not active. Check that any text on it still meets your contrast requirements.