Sub topic 5
Emphasis through color and value
This chapter assumes you know the basic vocabulary of color (hue, saturation, brightness) and the idea that contrast creates emphasis, which the previous chapters covered. Basic CSS helps with the code examples but is optional.
Hue, saturation, and value are separate controls
Color has three properties that you can change independently:
- Hue is the color family: red, green, blue.
- Saturation is how pure or intense the color is. A fully saturated red is vivid. A desaturated red looks gray-brown.
- Value is how light or dark the color is, regardless of hue. Light yellow has a high value. Navy has a low value.
Each property can create a focal point. They do not work equally well, though. Value is the strongest and most reliable of the three, because the eye detects differences in lightness faster and at lower sizes than differences in hue. Hue and saturation add emphasis on top of value, and they are the first to fail when the viewer has a color vision difference or the screen is dim.
Value contrast comes first
A focal point built on value works even if the color is removed. This is why designers check value before they check color. If you convert a layout to grayscale and the focal element no longer stands out, the emphasis was relying on hue alone, and it is fragile.
There are two basic ways to use value for emphasis:
- Make the focal element the lightest or darkest thing in its area. One dark shape on a light page stands out. So does one light shape on a dark page.
- Surround the focal element with the opposite value. A white word on a dark panel inside a light page gets a local contrast boost from the panel.
Contrast is relative. A mid-gray button on a white page is a strong accent. The same button on a black page is almost invisible. Always judge the element against its neighbors, not in isolation.
Saturation and the "one loud color" rule
Saturation creates emphasis by difference. A page of muted, low-saturation colors makes one saturated element glow. A page where everything is saturated has no loud color, so nothing is emphasized.
A practical rule is to keep the page mostly neutral or muted and spend saturation on one thing. The red button in the card example below works because the rest of the card is gray and black.
Hue contrast and temperature
Hue creates emphasis in two ways.
- Complementary contrast. Colors opposite each other on the color wheel, such as blue and orange or red and green, vibrate against each other. A small orange element on a blue field draws the eye.
- Temperature contrast. Warm colors (red, orange, yellow) tend to advance, and cool colors (blue, green, violet) tend to recede. One warm accent on a cool layout becomes the focal point. This is a tendency, not a law, and value and saturation can override it.
A caution about red and green: roughly 1 in 12 men has some form of red-green color vision deficiency. A red-on-green emphasis can disappear for them. Pair hue differences with a value difference so the emphasis survives.
A worked example in CSS
The following card has a heading, a paragraph, and a button. The heading leads through size and weight, the body text recedes through lighter color and weight, and the single saturated red button becomes the focal point by contrast.
.card { max-width: 24rem; padding: 1.5rem; }
.card h2 { font-size: 2rem; font-weight: 700; color: #111; margin: 0 0 0.5rem; }
.card p { font-size: 1rem; font-weight: 400; color: #555; margin: 0 0 1.5rem; }
.card .cta { font-size: 1.125rem; font-weight: 600; color: #fff; background: #d62828; padding: 0.75rem 1.5rem; border: 0; border-radius: 0.25rem; }Look at what each color does:
| Element | Color | Role |
|---|---|---|
| Heading | `#111` (near black) | Highest value contrast with the page, so it is read first as text |
| Paragraph | `#555` (mid-gray) | Lower value contrast, so it recedes |
| Button | `#d62828` (saturated red) | The only saturated color, so it is the focal point |
The heading and the button win in different ways. The heading wins through value and size. The button wins through saturation and hue, and it is the only element that does so. If you also turned the heading red, the two would compete. The next chapters on competing emphasis return to this problem.
How the eye decides
The diagram shows a simple decision process for choosing which color property to spend on emphasis.
Measuring value contrast with numbers
You can measure value contrast instead of guessing. The WCAG accessibility standard defines a contrast ratio between two colors from 1:1 (identical) to 21:1 (black on white). The ratio is computed from relative luminance, which is a weighted measure of how bright a color appears.
The script below calculates it for two hex colors.
def channel(c):
c = c / 255
return c / 12.92 if c <= 0.03928 else ((c + 0.055) / 1.055) ** 2.4
def luminance(hex_color):
h = hex_color.lstrip("#")
r, g, b = (int(h[i:i + 2], 16) for i in (0, 2, 4))
return 0.2126 * channel(r) + 0.7152 * channel(g) + 0.0722 * channel(b)
def contrast(a, b):
la, lb = luminance(a), luminance(b)
hi, lo = max(la, lb), min(la, lb)
return (hi + 0.05) / (lo + 0.05)
pairs = {
"heading on white": ("#111111", "#ffffff"),
"paragraph on white": ("#555555", "#ffffff"),
"button label on red": ("#ffffff", "#d62828"),
"red button on white": ("#d62828", "#ffffff"),
}
for name, (fg, bg) in pairs.items():
print(f"{name}: {contrast(fg, bg):.2f}:1")Running it shows that the heading has a much higher ratio than the paragraph, and that the red button is only moderately distinct from white by value (around 5:1). The button stands out mainly through saturation. This is a useful result: the button's emphasis depends on hue and saturation, so it is the part of the design most worth checking for color vision differences.
Contrast ratios are a floor for readability, not a measure of emphasis. A body paragraph at 7:1 is perfectly readable and still recedes if the heading is at 17:1.
Common errors
- Emphasis by hue only. A red link among green text at the same value disappears in grayscale and for some viewers. Add a value or weight difference.
- Too many accents. Three saturated colors on one screen create three focal points. Pick one primary accent and use it consistently for the primary action.
- Accent used for decoration. If the accent color also appears on icons, borders, and tags, it no longer signals "look here." Reserve it.
- Judging contrast in isolation. A swatch looks bright on its own palette sheet and dull on the real page. Always test in context.
- Low-value text on a saturated background. Light text on a saturated mid-value background, such as white on orange, often has poor contrast. Check the number.
- Ignoring dark mode. An accent that pops on white may glow harshly or lose value contrast on a dark background. Re-check emphasis in each theme.
Value structure as a planning tool
Many illustrators and photographers plan a composition with only three or four value levels: a dark, a mid-tone, and a light, sometimes with a fourth accent. Assigning the largest area to the mid-tone, a smaller area to the dark, and the smallest area to the light (or the reverse) gives a clear structure. The focal point is then placed where the strongest value contrast occurs, usually the meeting of the lightest light and the darkest dark.
For interface work this translates to a simple plan: the page background is one value, the content surfaces are one or two nearby values, text is the extreme value, and the focal element takes the most extreme or most saturated treatment on the screen.
Checking your work
The grayscale and blur filters from the testing chapter can be applied to any preview to check these decisions. Add them to a preview wrapper and toggle them.
.preview-blur { filter: blur(6px); }
.preview-gray { filter: grayscale(100%); }With .preview-gray applied, check whether the red button still reads as the most prominent element. With #d62828 on white it should remain a clearly dark shape, but a lighter accent such as #ff8a8a would fade into the page. That difference is exactly what the grayscale check is for.
Exercise
A page has a navy header, a light-gray background, and gray body text. You want a green "Subscribe" button to be the focal point. In grayscale, the button looks nearly the same as the gray background. List two changes that fix this without adding a second accent color.
Show answer
First, change the button's value so it differs from the background: make the green much darker (or use white text on a dark green), so it reads as a dark shape in grayscale. Second, reduce competition by muting other saturated or high-contrast elements, for example by keeping the header navy desaturated and the body text mid-gray, so the button is the only saturated, high-contrast element. Adding a size or weight increase for the button label is a valid third option, but the two fixes above address value and saturation directly.
Exercise
Why is value generally a more reliable tool for emphasis than hue?
Show answer
The eye detects differences in lightness faster and at smaller sizes than differences in hue, and value contrast survives color vision deficiencies, dim screens, and grayscale printing. Hue contrast can vanish in all of these cases, so it is best used to add emphasis on top of a value difference.