---
title: "WCAG Colour Contrast: AA and AAA in Practice | VulCode"
description: "WCAG 2.2 colour contrast: 4.5:1 for text, 3:1 for large text and interface elements, 7:1 for AAA. Real colour pairs and how to check a palette before launch."
url: "https://vulcode.com/en/blog/wcag-color-contrast-check"
lang: "en"
---

[Blog](https://vulcode.com/en/blog)

# WCAG colour contrast: how to check a palette before launch

Grey #777777 on white gives 4.47:1 and fails AA, while #767676, one shade darker, passes. The WCAG 2.2 thresholds and a result that is never rounded

6 November 2026, [Michał Fox](https://vulcode.com/en/company/about)

WCAG AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text and interface elements; AAA requires 7:1 for normal text and 4.5:1 for large text. For example, grey text in #777777 on a white background has a contrast ratio of 4.47:1 and fails the AA threshold of 4.5:1 for normal text. One shade darker, #767676 gives 4.54:1 and passes. The W3C guidance on success criterion 1.4.3 is explicit that the result is not rounded: 4.499:1 does not meet 4.5:1. That is why our tool truncates the result to two decimal places and never rounds it up.

## WCAG 2.2 contrast thresholds: AA and AAA

Contrast thresholds in WCAG 2.2

| What you check | AA | AAA |
| --- | --- | --- |
| Normal text | 4.5:1 | 7:1 |
| Large text: 18 pt, or 14 pt bold | 3:1 | 4.5:1 |
| Icons, input borders and charts | 3:1 | 3:1 |

## How to check the contrast of every colour pair in the palette

According to the W3C, 18 pt is about 24 px in CSS and 14 pt about 18.5 px, so a 16 px button label counts as normal text. White text on a #3b82f6 blue gives 3.67:1: enough for a 24 px heading, not for a button with 16 px text. That is why, in our interface designs, we compute the contrast of every pair from the colour values before the design reaches the code, not just the brand colour on white.

The tool shows all five thresholds for a colour pair, a preview at 16 px, 24 px and 19 px bold, and the nearest text colour that passes AA and AAA, so you fix the palette by a shade instead of redesigning it. Our article on [digital accessibility](https://vulcode.com/en/blog/digital-accessibility-wcag-eaa) covers when it becomes a legal duty.

Check a colour pair in the [WCAG contrast checker](https://vulcode.com/en/tools/color-tools), and see a full audit with screen reader tests and code fixes on our [accessibility](https://vulcode.com/en/services/digital-accessibility) page.

Was this article helpful?

Yes

No

## More on this in our blog

- [Digital accessibility for websites and online stores: WCAG 2.2, the European Accessibility Act and Polish law Since 28 June 2025, online stores and websites through which a consumer can start entering into a contract must meet accessibility requirements. Who the law covers, what WCAG 2.2 requires and how to test your site without guesswork.](https://vulcode.com/en/blog/digital-accessibility-wcag-eaa)

## Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
