Less paperwork. More possibility.
Help & guides

Color Contrast Checker

Check WCAG 2 contrast ratios for accessible text

Contrast ratio

14.68:1

AA — normal text (min 4.5:1)Pass
AA — large text (min 3:1)Pass
AAA — normal text (min 7:1)Pass
AAA — large text (min 4.5:1)Pass

Large text preview (24pt+/18pt bold)

Normal text preview. This is roughly what body copy at 16px looks like in these two colors, so you can judge readability yourself, not just trust the number.

How to Check Color Contrast

1

Set your text and background colors

Use the color pickers or type hex codes directly for the text (foreground) and the background it sits on.

2

Read the exact ratio

The calculator computes the true WCAG relative luminance for each color and returns a precise ratio like 4.52:1, not a rough estimate.

3

Check pass/fail and preview

Four checks tell you instantly whether the pairing clears AA or AAA at normal and large text sizes, and the live preview shows what the combination actually looks like.

Why Use PDF Nest's Contrast Checker

✓ The actual WCAG formula, not a shortcut

Contrast is computed using the real WCAG 2 relative luminance formula, which gamma-corrects each color channel before weighting red, green, and blue differently (the eye is far more sensitive to green than blue). A naive brightness-difference calculation gets this wrong for saturated colors.

✓ All four thresholds at once

Instead of only telling you "AA pass," you get separate results for AA normal text (4.5:1), AA large text (3:1), AAA normal text (7:1), and AAA large text (4.5:1) — the four thresholds that actually appear in the WCAG success criteria.

✓ See it, don't just read a number

A live preview renders sample text in your exact colors at both a large-text size and a normal body-text size, since the same ratio can feel very different depending on font weight and size.

✓ Built for designers and developers

Whether you're picking a button color, checking a client's brand palette, or doing an accessibility audit, this gives you a defensible, standards-based number in seconds.

Frequently Asked Questions

What counts as "large text" under WCAG?

WCAG defines large text as at least 18pt (24px) regular weight, or at least 14pt (about 18.66px) bold. Large text gets a lower contrast requirement (3:1 for AA, 4.5:1 for AAA) than normal body text, because bigger, bolder strokes remain legible at lower contrast.

Do I need to pass AAA, or is AA enough?

AA is the level most accessibility guidelines and legal standards (like ADA-related web guidance and EN 301 549) require, so it's the practical minimum for most projects. AAA is a stricter, "enhanced" level that's recommended where possible but not always mandatory — treat a AAA pass as a bonus, not a requirement, unless your project specifically calls for it.

Does the order of foreground and background matter?

No — the contrast ratio formula always divides the lighter relative luminance by the darker one, so swapping which color is "text" and which is "background" gives the exact same ratio. What does matter is which color is actually used for the text in your design, since that determines which preview and use case you're really checking.

Why is my ratio shown as something like 4.52:1 instead of a round number?

Contrast ratio is a continuous mathematical value derived from luminance, not a value designed to land on round numbers. Two colors that are visually similar can differ by fractions of a point, which is exactly why the exact ratio — not just a pass/fail badge — is shown, so you can see how close you are to a threshold.

Check a text and background color pair

Compare text and background colors with calculated contrast ratios and displayed accessibility thresholds for text sizes.

Steps for color contrast checker

  1. Choose foreground and background colors.
  2. Inspect the ratio and size-related thresholds.
  3. Adjust the colors and review the preview.

Does passing contrast make a page accessible?

No. Contrast is one part of accessibility; keyboard use, semantics, labels and other requirements still matter.

Related tools