Color Contrast Ratio
Color contrast ratio is a measure of the difference in relative luminance (brightness) between two colors, such as text and its background. The ratio ranges from 1:1, where the two colors are identical and provide no contrast, up to 21:1, the maximum contrast such as black text on a white background. Higher contrast generally makes content easier to perceive, particularly for people with low vision or color perception differences.
The color contrast ratio expresses the relationship between the relative luminance of two colors and ranges from 1:1 to 21:1. It is used within the Web Content Accessibility Guidelines (WCAG) to evaluate the legibility of text against its background. Under WCAG Success Criterion 1.4.3 Contrast (Minimum), a Level AA target, normal text is commonly expected to meet at least a 4.5:1 ratio and large text at least 3:1. The stricter WCAG Level AAA criterion (1.4.6 Contrast Enhanced) calls for at least 7:1 for normal text and 4.5:1 for large text. WCAG defines large text as approximately 18 point (about 24 CSS pixels) or 14 point bold (about 18.66 CSS pixels) and larger. Contrast can be evaluated with tools that compute the ratio between a specified foreground and background color; note that meeting a numeric threshold addresses only one aspect of visual accessibility and does not by itself guarantee overall usability or legal compliance.
Why it matters
Color contrast ratio directly affects whether people can read and understand content. Text that is too close in luminance to its background can be difficult or impossible to perceive, particularly for people with low vision or color perception differences, as well as for anyone reading in challenging conditions such as bright sunlight or on a dim display. Because contrast can be measured numerically, it is one of the more objective and testable aspects of visual accessibility, which is why it features prominently in the Web Content Accessibility Guidelines (WCAG).
Contrast requirements are commonly cited in accessibility evaluations because they map to specific WCAG success criteria. Success Criterion 1.4.3 Contrast (Minimum), a Level AA target, is often referenced as a benchmark, and WCAG conformance at Level AA is the level most frequently used as a goal in accessibility programs. Insufficient contrast is also among the categories of issues that automated tools can reliably detect, so it is frequently among the first problems flagged during a review.
That said, meeting a numeric contrast threshold addresses only one aspect of visual accessibility. It does not by itself guarantee that content is usable for all users, nor does it guarantee legal compliance. Contrast should be evaluated alongside manual testing, assistive technology testing, and broader usability considerations. This entry describes technical guidance and is not legal advice; organizations with compliance questions should consult qualified legal counsel and current agency rulemaking.
Who it's relevant to
Inside Color Contrast Ratio
Common questions
Answers to the questions practitioners most commonly ask about Color Contrast Ratio.