Skip to main content
Welcoma

WCAG

WCAG Colour Contrast: Requirements and Proper Testing

By Alexander Flach Updated 3 min read

Contents

Insufficient colour contrast is one of the most common—and easiest to fix—accessibility barriers. Text that is too light against its background can be difficult or impossible to read for people with visual impairments or colour vision deficiencies, or simply when viewing a screen in bright sunlight. The WCAG define specific, measurable thresholds. This article explains the requirements, what qualifies as “large text,” which exceptions apply, and how to test contrast correctly.

What colour contrast means—and why it matters

Contrast is the difference in brightness between the foreground, such as text, and its background. It is expressed as a ratio ranging from 1:1, meaning no difference, to 21:1, such as black on white. The higher the value, the easier the content is to read.

Many users are affected, including people with visual impairments or colour vision deficiencies, older people, and ultimately anyone using a device in bright ambient light. Because contrast can be calculated precisely, it is one of the few accessibility requirements that automated tools can test reliably. Learn more in Automated WCAG Testing.

The WCAG requirements in detail

Level AA is relevant to the BFSG. See WCAG Conformance Levels. It requires:

  • Normal text: a minimum contrast ratio of 4.5:1.
  • Large text: a minimum contrast ratio of 3:1.
  • Non-text contrast: a minimum contrast ratio of 3:1 for user-interface components and meaningful graphics, such as input-field borders, icons, focus indicators, or colours used to distinguish information in a chart (WCAG 1.4.11).

The higher AAA level requires a ratio of 7:1 for normal text and 4.5:1 for large text. As with Level AAA generally, this is not a universal requirement, but it may be worth aiming for in certain areas.

What qualifies as “large text”

The threshold is clearly defined: large text is text of at least 18 points, approximately 24 pixels, or bold text of at least 14 points, approximately 19 pixels. Anything smaller is considered normal text and must meet the stricter ratio of 4.5:1.

Exceptions

Not everything is subject to the contrast requirements:

  • Logos and brand names in their designed form.
  • Purely decorative text and elements that convey no information.
  • Inactive or disabled controls.
  • Incidental text that forms part of an image but is not the primary content.

How to test contrast correctly

A contrast checker is sufficient for most tests, such as our Contrast Checker. Enter the foreground and background colour values to calculate the contrast ratio. Many accessibility tools and browser developer tools also display this value directly. Because contrast can be calculated precisely, it is one of the strongest areas of automated accessibility testing.

Manual testing is required when the background is not uniform—for example, text displayed over gradients or images where the contrast varies across the area, transparent text, and hover or focus states. In such cases, a single calculated value is not enough.

Common contrast errors

Several patterns appear repeatedly:

  • Light-grey body text on a white background—it may look “elegant,” but fails to provide sufficient readability.
  • Warm or bright accent colours, such as orange, yellow, or light green, used for small text. These colours are better suited to backgrounds or large elements than small text.
  • Placeholder text in form fields that is too light.
  • Text placed over busy background images without a darkening overlay.
  • White text on lightly coloured buttons.

Frequently Asked Questions

What contrast ratio is required under the BFSG?

Level AA: at least 4.5:1 for normal text and 3:1 for large text, as well as 3:1 for user-interface components and meaningful graphics.

What qualifies as large text?

Text of at least 18 points (approximately 24 pixels) or bold text of at least 14 points (approximately 19 pixels). Anything smaller must meet the requirement for normal text.

Do the contrast requirements also apply to buttons and icons?

Yes. Under WCAG 1.4.11, user-interface components and meaningful graphics must achieve a contrast ratio of at least 3:1. This includes icons, input-field borders, and focus indicators.

Updated: . This article gives a general overview. Not legal advice.

Written by

Alexander Flach

Updated:

Keep reading.

Find out what your website is missing.

The free first scan shows you every finding that can be checked automatically.