Mental model

Color Contrast

Color contrast describes the light-dark difference between text and its background. Checking it helps assess one part of web accessibility.

Discover

Color contrast is the light-dark difference between text and its background. Which pair has the strongest light-dark contrast?

Pick the pair with the strongest light-dark contrast

Learn how to check whether text stands out from its background, and what a contrast check can and cannot tell you.

Understand

Understand

Color contrast is the light-dark difference between text and its background. A contrast ratio expresses that difference as a number. The Web Content Accessibility Guidelines (WCAG) set a minimum of 4.5:1 for most web text, with a lower minimum for large text and exceptions for certain content. Try checking one text-and-background pair with a contrast checker.

Full explanation

Full explanation

Contrast checks use relative luminance, a measure of a color's relative brightness. A contrast ratio compares the relative luminance of text and its background using a standardized calculation. Color names alone cannot establish the result, and a ratio of 4.5:1 does not simply mean that one color is 4.5 times brighter than the other.

WCAG Success Criterion 1.4.3, its minimum text-contrast requirement, generally requires at least 4.5:1 for text and images of text—words stored as an image. Large text requires at least 3:1. Large means at least 18 points, a measure of font size, or 14 points when bold, or equivalent sizing for Chinese, Japanese and Korean fonts. The criterion also covers placeholder text and text displayed when someone points to or selects a control using a keyboard. [1]

Exceptions cover text in inactive controls, pure decoration, text invisible to everyone, and text within pictures containing significant other visual content. Logo and brand-name text also has an exception, but deliberately fading an otherwise sufficiently contrasting logo is not automatically exempt. Brand colors do not exempt ordinary text. Non-text graphics and symbols are addressed by a separate criterion. [1]

Imagine a hypothetical website with small pale-orange instructions on white. Suppose a contrast checker reports 4.499:1 for the specified colors: this falls below 4.5:1 and must not be rounded up to pass. Adjust the colors and check again. If the website offers light and dark presentations, check the text-background pairs in each; a mode's name does not establish its contrast. [1]

For evaluation, use the text and background colors specified in the page rather than sampling softened letter edges. Font smoothing, also called anti-aliasing, softens those edges and can make thin lettering appear fainter. The guidance recommends stronger letter strokes or contrast above the minimum when this causes problems. [1]

These thresholds are minimum requirements for this criterion, not promises of effortless reading for everyone. The supplied document explains accessibility guidance; it is not an experiment demonstrating universal benefits. Passing a contrast check alone does not establish overall accessibility or legal compliance.

Research

Research

  • Guidance on scope: Success Criterion 1.4.3 generally requires at least 4.5:1 for text and images of text, or 3:1 for large text, subject to its stated exceptions. These are minimum thresholds, not universal readability guarantees. [1]
  • Guidance on testing: Computed contrast values must not be rounded up to meet a threshold. Evaluate the specified foreground and background colors rather than colors sampled from smoothed text edges. [1]
  • Conditional guidance on customization: Authors may offer user-selected color combinations below the minimum if a mechanism allows users to return to colors that meet the required values. The document presents this as an accommodation for differing needs, not an experimentally established benefit for everyone. [1]

Limitations

Limitations

The supplied Understanding document is informative guidance explaining the criterion, not an experimental study or a legal compliance guarantee. It notes that thin or unusual fonts can appear faint despite a nominally passing color pair. Its text-contrast requirements do not supply the requirements for non-text graphics. The former bibliography entry labeled “Contrast Minimum (Understanding Level AAA)” was misidentified and is replaced here by the supplied guidance for Success Criterion 1.4.3 at Level AA, a WCAG conformance level; the document identifies enhanced contrast separately as Success Criterion 1.4.6. The old ISO entry is not retained as a separately verified source. [1]

Try it

Synthesize

Choose a pattern from the guide, then pick an action to try with it.

Which pattern stands out?

What will you try?

Choose a pattern above to select an action.

Sources

Sources

Try it

Check your understanding

In a hypothetical website, a designer proposes pale-orange text on white for ordinary-sized instructions. Which concern directly relates to the text-contrast requirement?

Show the guide's explanation

Answer: The contrast ratio may be too low for reliable readability

The relevant concern is insufficient light-dark contrast. Check the exact text and background colors against the applicable 4.5:1 minimum; color names alone do not establish whether the pair passes. Passing that minimum does not guarantee readability for everyone.

A hypothetical reading website offers both light and dark modes. How should its ordinary-sized text be checked against the contrast minimum?

Show the guide's explanation

Answer: Check the text and background contrast in each mode

The requirement concerns the contrast of the actual text-background pairs. Neither mode's name establishes that its colors meet the minimum, and switching modes does not prove universal readability.

For ordinary-sized text without an applicable exception, which action provides a numerical basis for checking the contrast minimum?

Show the guide's explanation

Answer: Calculate the contrast ratio between foreground and background colors

Calculate the ratio using the specified text and background colors, for example with a contrast checker, and compare it with 4.5:1. Do not round a lower result up to pass. Personal preference, a colleague's reading experience and a brand palette do not provide that numerical comparison.

Keep exploring

Find another idea for the decision in front of you.

The complete Reframo library is free to read. Explore another guide whenever you are ready.