Accessibility checks

Text contrast under WCAG: the most common finding and how to fix it

Contrast is the difference in luminance between text and its background, expressed as a ratio such as 4.5:1. A higher value generally means better readability. WCAG defines minimum ratios according to the size and type of content. The study below documents frequent low contrast in its sample.

A common problem: colour is judged by eye alone

Poor contrast often results from an attempt to create a subtle visual style. A designer chooses light grey text on a white background, and the result may look readable on a high-quality monitor.

The customer, however, may be reading it on an inexpensive phone, in sunlight, through a smudged screen, with tired eyes or with impaired vision, and the text may be difficult to read. This does not affect only people with disabilities: low contrast also reduces readability under everyday conditions.

Typical examples include grey guidance beneath fields, pale text on a coloured button, placeholder text used instead of an actual form label, or “secondary” text in the footer. They may look like minor design details, but they directly affect readability.

How to measure and assess contrast

Contrast is measured rather than estimated by eye, and WCAG 2.2 Level AA sets clear thresholds:

For many elements, an automated tool can calculate the contrast ratio between the text and background colours and provide a specific value. Gradients, image backgrounds, transparency and some element states may require manual measurement. This is why we supplement automated checks with human verification.

A repair may involve changing a shade. Measure the specific colour pair against its actual background and in relevant states. The original shades are examined in the example below.

What is assessed, and what is a real exception?

WCAG 2.2 provides exceptions for cases such as logo text, purely decorative text or text in an inactive control. “Secondary text” is not automatically decorative. Information about a price, error or instruction remains meaningful even when the design displays it in grey.

A placeholder in an active field is assessed as text. Correcting its contrast does not itself fix a missing label. The same principle applies to an error message: it must be readable, and the user must understand what to correct. State differences are not assessed solely by comparing two shades. For non-text information, assess the required element against adjacent colours under SC 1.4.11.

The most common finding depends on measurement scope. In WebAIM Million 2026, low text contrast was the most commonly detected automated issue in a sample of one million home pages. This is neither a statistic for this website nor a complete manual audit of every page.

A practical investigation procedure

  1. Identify the text and its actual background. Record the URL, component, state and page theme.
  2. Check the rendered font size and weight in the browser. A heading is not necessarily large text merely because it has heading markup. A smaller mobile size can change the required ratio.
  3. Obtain the resulting colours and check opacity and background layers. For an image or gradient, assess the areas behind the text, rather than an arbitrary average of the whole image.
  4. Compare the unrounded ratio with the applicable threshold. The SC 1.4.3 explanation states that 4.499:1 does not meet 4.5:1.
  5. After a change, repeat measurement where the same colour is used. Also check hover, focus, error, light and dark themes where the component provides them.

Do not use a colour sampled from an anti-aliased letter edge as the sole evidence. Use the element’s defined and resulting colours. If automation cannot reliably identify the background, record the need for manual assessment. An unevaluated element is not a confirmed pass.

Why a new shade alone is not enough

For opaque text on a white #ffffff background, #999999 has a ratio of approximately 2.85:1. The shade #595959 gives approximately 7.00:1 and therefore meets the normal-text minimum in this model. The calculation using W3C technique G18 was verified without rounding the pass decision. Displayed values are rounded only for readability.

The same change may not work on another background or with partially transparent text. If text on a photograph cannot be made readable, consider a separate backing surface and measure the resulting combination. Update the relevant colour role in the design system and check its uses, rather than randomly darkening individual paragraphs.

An inactive-control exception should reflect its state, not its grey appearance. An instruction explaining why a button is inactive does not itself inherit that exception. Thin fonts can be harder to read even when the mathematical ratio passes. Assess the minimum alongside practical readability.

What to record after a repair

Attach the original and replacement colour pairs, font size and weight, measured ratio, applicable criterion and checked states. Include unverified backgrounds or variants. Changing a shared style affects several places, so investigate possible regressions too.

A passing contrast check does not confirm overall accessibility or the readability of all content. Labels, keyboard operation, colour meaning and content order require separate assessment. The record lets you recheck the same combinations after another change without mistaking one criterion’s repair for an entire audit.

What measurable rules give you

Next step

Would you like to know where your website may have contrast problems? Contact us. A free initial scan will reveal the first automatically detectable issues and provide measured values for elements that can be evaluated automatically. The remaining combinations and interactive states can be examined through targeted manual measurement.

Related topics

You might also be interested in

Catch new accessibility issues during the release process

Automated checks may highlight new machine-detectable errors in already checked parts at release.