Formal definition
Contrast is the state of being strikingly different from something else in juxtaposition or close association. In visual perception, it is the difference in luminance or colour that makes an object distinguishable.
Design system and core concept: to perceive anything at all, there must first be a difference. Without contrast, information, meaning and perception disappear.
Contrast is the state of being strikingly different from something else in juxtaposition or close association. In visual perception, it is the difference in luminance or colour that makes an object distinguishable.
From Latin contra ("against") and stare ("to stand"). It entered English via Italian (contrastare) and French (contraster) as an art term meaning to place opposing elements side by side.
Contrast is not limited to black and white. Here is how different dimensions of opposition show up in design and perception:
The core of web accessibility. A large difference between background and text luminance makes text legible for everyone.
Pairing heavy display type with light body text creates an immediate visual hierarchy.
Complementary colours placed side by side intensify each other and guide the eye towards the key action.
Research from Seminar 1: five minutes of unfiltered notes, then short interviews with two people about what contrast means to them.
Black and white, day and night, silence right after a loud noise, cold water on a hot day, big bold titles next to small text, reading a phone screen in glaring sunlight.
"Contrast is what tells you where to look first. If every part of a picture is equally bright or loud, your eyes get tired and nothing stands out."
"I immediately think of readable text on a screen. Light grey text on a white background is the worst thing on the internet; good contrast means I don't have to squint."
Our eyes do not measure absolute light. Neighbouring photoreceptor cells inhibit each other (lateral inhibition) to sharpen edges. Biologically, we are wired to detect contrast.
In music, a sudden rest after a loud orchestral chord feels far more dramatic because of contrast over time.
Hot espresso over cold vanilla ice cream, or flaky sea salt on dark chocolate: opposing sensations amplify each other on the palate.
In a Ganzfeld experiment (a completely uniform visual field with no contrast at all), the brain stops seeing within minutes and starts producing shapes of its own.
WCAG asks for a luminance contrast ratio of at least 4.5:1 for normal text and 3:1 for large text and interface controls. These are the pairs used on this page, with their measured ratios:
Pick a text colour and a background colour. The tester uses the same formula as WCAG.
For whom: anyone who wants a short, honest answer to "what is contrast?", and students of web design who need to know why it matters. Three words for the look: opposed, sharp, alive. That is why one violet carries the page, one pink marks what to look at, and the dark theme keeps the same two colours.
Kept up to date: last changed on by the author. The page follows the visitor's settings: light or dark scheme, reduced motion and more contrast.