Sub topic 8
Tints, tones, and shades of a single hue
This chapter assumes you know what hue, saturation, and value mean, and that you can read short CSS and Python snippets. Here you will use those properties to build a family of related colors from one hue.
Three ways to move away from a pure color
A pure hue is a color at full saturation with no gray, white, or black mixed in. Designers describe three changes to it:
- A tint is the hue mixed with white. It gets lighter and less saturated.
- A tone is the hue mixed with gray. It gets duller, and its lightness changes only a little.
- A shade is the hue mixed with black. It gets darker.
In all three, the hue angle stays the same. That shared hue is why the results still read as one color family.
Mapping the idea to the sliders
The mixing description and the slider description are two views of the same operation. In HSV:
| Result | Mixed with | Saturation | Value |
|---|---|---|---|
| Tint | White | Goes down | Stays high |
| Tone | Gray | Goes down | Roughly stays |
| Shade | Black | Roughly stays | Goes down |
In HSL, a tint raises lightness and a shade lowers it. A tone lowers saturation. The next chapters cover how HSV and HSL differ, so use the table as a guide, not an exact formula.
Generating the variants in code
Mixing in RGB follows the physical description directly. The function below blends a color toward another color by a given amount.
import colorsys
def to_hex(rgb):
return "#" + "".join(f"{round(c * 255):02x}" for c in rgb)
def mix(color, other, amount):
return tuple(c + (o - c) * amount for c, o in zip(color, other))
# A saturated blue at hue 210 degrees
base = colorsys.hsv_to_rgb(210 / 360, 0.8, 0.8)
white = (1.0, 1.0, 1.0)
gray = (0.5, 0.5, 0.5)
black = (0.0, 0.0, 0.0)
print("base ", to_hex(base))
for amount in (0.25, 0.5, 0.75):
print(f"tint {amount:.2f}", to_hex(mix(base, white, amount)))
print(f"tone {amount:.2f}", to_hex(mix(base, gray, amount)))
print(f"shade {amount:.2f}", to_hex(mix(base, black, amount)))Each row moves further from the base as amount increases. At 1.0 you would get pure white, gray, or black, which have no hue left.
The same idea in CSS
In CSS, keep the hue fixed and change only lightness or saturation:
:root {
--hue: 210;
--tint-1: hsl(var(--hue) 80% 70%);
--tint-2: hsl(var(--hue) 80% 85%);
--tone-1: hsl(var(--hue) 50% 45%);
--tone-2: hsl(var(--hue) 20% 45%);
--shade-1: hsl(var(--hue) 80% 30%);
--shade-2: hsl(var(--hue) 80% 15%);
}A single --hue variable lets you retheme the whole set by changing one number.
Common errors
- Changing the hue by accident. Shades made by mixing with black can look slightly different in hue. Check them against the base before you use them.
- Making tints too bright. Near 100% lightness, tints turn almost white, and different hues become hard to tell apart.
- Using tones as if they were neutral. A tone still carries a hint of hue, so it can clash with a true gray beside it.
- Using even steps and expecting even results. Equal numeric steps rarely look equal. This is the topic of the perceived lightness chapter.
Practice
Exercise
A button uses hsl(210 80% 50%). You need a lighter background fill, a muted border, and a darker pressed state, all in the same family. Write one HSL value for each and name the type (tint, tone, or shade).
Show answer
Background fill, a tint: hsl(210 80% 90%) (raise lightness). Muted border, a tone: hsl(210 30% 50%) (lower saturation, keep lightness). Pressed state, a shade: hsl(210 80% 30%) (lower lightness). All three keep hue 210. Other values are fine if they follow the same pattern.
Exercise
In the Python example, why does mix(base, white, 1.0) no longer have a meaningful hue?
Show answer
At amount 1.0 the result is pure white (1, 1, 1). All three RGB channels are equal, so saturation is zero and the hue is undefined.