Contrast ratio analyser

Contrast ratio analyser image
A contrast ratio analyser, also called a colour contrast checker, is a tool that measures the contrast between two colours, such as text and its background, and reports whether it meets accessibility guidelines like WCAG.

Why it matters: Low contrast affects far more people than those with colour blindness, including people with poor vision and dyslexia. It's one of the most common accessibility failures, and one of the easiest to measure.

In practice: Testers pick the two colours, either from the code or from a screenshot, and the tool returns a ratio to compare against the WCAG thresholds. Checking colours from a screenshot of the real screen matters, because what is programmed is not always what users see. On mobile, that means taking a screenshot on the device and checking it on a desktop.

Examples:

  • Taking a phone screenshot, picking the text and background colours, and checking them with an analyser.
  • Checking grey text on a darker grey background that looks fine to the designer but fails the ratio.

Common pitfalls:

  • Checking only design files or code values, not the colours actually rendered.
  • Forgetting text over images and gradients, where contrast changes across the area.

What contrast ratio does WCAG require? At level AA, normal text needs a ratio of at least 4.5:1 against its background, and large text at least 3:1.
Explore MoT
Test Forward 2027 · Software Quality in the age of AI image
Tue, 19 Jan 2027
Test Forward is one afternoon at Station F with the QA and engineering people closing that gap in their own teams.
API Mocking made easy image
Create fully mocked APIs quickly—with realistic, randomised data and customisable responses for faster, more reliable testing with fewer blockers
Into The Motaverse image
Into the MoTaverse is a podcast by Ministry of Testing, hosted by Rosie Sherry, exploring the people, insights, and systems shaping quality in modern software teams.
Subscribe to our newsletter