Glossary · Web Design

Contrast Ratio

KON-trast RAY-shee-ohnoun

Contrast ratio is a measure of the luminance difference between two colors, typically text and its background.

Part of speech
noun
Pronunciation
KON-trast RAY-shee-oh
Origin
A measure from color science and accessibility standards, defined in WCAG as the luminance difference between two colors, expressed as a ratio like 4.5 to 1.

What is Contrast Ratio?

Contrast ratio is a measure of the luminance difference between two colors, most often text and the background it sits on. It expresses how much lighter one color is than another as a single number, written as a ratio such as 4.5 to 1 or 7 to 1. The larger the first number, the greater the difference in brightness and the easier the text is to read. A high contrast ratio, like black text on a white background, is comfortable for almost everyone, while a low ratio, like light gray text on a white background, strains the eyes and can make content unreadable for some people entirely.

The measure comes from color science and is defined precisely in accessibility standards. It is calculated from the relative luminance of each color, a value that reflects how bright a color appears to the human eye, weighting green more heavily than red or blue because our vision is most sensitive to green. The ratio ranges from 1 to 1, when two colors are identical and there is no contrast, up to 21 to 1, the maximum difference between pure black and pure white. Because the calculation is based on measured luminance rather than subjective impression, it gives designers an objective way to test whether a color combination is legible, independent of personal taste or the appearance on any one screen.

The concept sits at the intersection of color science and accessibility standards, and it was given practical force by the Web Content Accessibility Guidelines, which define contrast requirements in terms of these ratios. The guidelines set thresholds that text should meet, commonly a minimum of 4.5 to 1 for normal body text and a lower bar of 3 to 1 for large text, with a stricter 7 to 1 available for higher conformance. These specific numbers translate the abstract idea of readability into a firm, testable target that anyone can check.

For a business, contrast ratio matters because it determines whether visitors can actually read the content on a site. Poor contrast frustrates everyone at least a little, and it excludes people with low vision or color deficiencies more severely, which can cost conversions and, where accessibility is required by law, create legal exposure. Readable text also supports engagement, since people stay longer and absorb more when the words are easy to see. Good contrast is one of the simplest, highest-impact accessibility improvements a site can make, and it costs nothing but attention to color choices.

The common mistakes usually stem from prioritizing aesthetics over legibility. Trendy pale grays on white, or subtle tone-on-tone color schemes, often look elegant to a designer with a bright monitor but fail badly for real users on dim screens or in sunlight. Placing text over busy images without a solid or darkened overlay is another frequent problem, since the contrast varies across the image and dips below usable levels in places. Assuming a combination is fine without measuring it leads to guesswork, when free tools can calculate the exact ratio in seconds. Contrast ratio is a core requirement within WCAG and a foundational part of web accessibility, and it works alongside a thoughtful color palette and typography to keep content readable for the widest possible audience.

Why it matters

Low contrast makes text hard to read and can fail accessibility law. Meeting contrast thresholds keeps content legible for every visitor and every device.