← Tilbake til funksjoner
Free

Contrast Checker

Contrast Checker calculates the WCAG 2.1 contrast ratio between two colors and grades them against AA/AAA thresholds for both normal and large text. Live preview shows text rendered in the chosen colors, and a "pick page background" button samples the current page.

Accessibility is increasingly required — WCAG conformance is a legal requirement in many jurisdictions, and even where it's not, poor contrast pushes away users. Contrast Checker tells you instantly whether any two colors meet WCAG standards. Pick a foreground and background via color picker or paste hex values; the tool computes the contrast ratio using the official WCAG luminance formula and grades it against four thresholds: AA normal (≥4.5:1), AA large (≥3:1), AAA normal (≥7:1), and AAA large (≥4.5:1). Each threshold shows a clear Pass/Fail badge. A live preview renders large and normal text in the chosen colors so you can see the actual visual impact. A convenience button samples the current page's body background — useful when checking whether a color combination on a real site passes. Everything runs locally in your browser, no uploads.

Live forhåndsvisning
example.com
Contrast Checker WCAG 2.1
Foreground
#1A1A1A
Background
#FFFFFF
Large text looks like this
Normal 14px text looks like this
18.10:1
Contrast Ratio
Excellent
AA · Normal
✓ Pass
≥ 4.5:1
AA · Large
✓ Pass
≥ 3:1
AAA · Normal
✓ Pass
≥ 7:1
AAA · Large
✓ Pass
≥ 4.5:1
Hovedfunksjoner

Instant WCAG 2.1 Calculation

Uses the official WCAG luminance formula to compute contrast ratio. Result is exact and matches every compliant accessibility checker.

Four Grade Checks at Once

Pass/fail for AA normal (≥4.5:1), AA large (≥3:1), AAA normal (≥7:1), AAA large (≥4.5:1) — all shown as a grid.

Live Color Preview

Renders actual large and normal text in your chosen colors so you see the visual impact alongside the numeric ratio.

Pick Page Background

One-click samples the current page's computed body background color — useful for testing real-world combinations.

Hex or Color Picker Input

Type a hex value or use the native color picker. Values sync bidirectionally as you edit either.

Swap Colors

One-click swap flips foreground and background — useful when checking inverted themes or hover states.

Vanlige bruksområder

Designing Accessible UI

Before finalizing a color palette, check every text color against its background to ensure WCAG AA compliance — avoids rework later.

Auditing Existing Sites

Use "pick page background" on a live site, then paste the actual text color — find a11y violations in minutes without opening Lighthouse.

Brand Color Compliance

When a brand picks a color that might fail a11y, use the checker to find the nearest compliant variant (darker/lighter shade).

Hover & Active State Checks

Verify that hover/active/disabled state colors still meet contrast requirements, not just the default.

Dark Mode Validation

Dark themes often fail contrast for grey-on-grey text. Check your darkest greys against your darkest backgrounds to catch these.

Slik bruker du det
1

Open Contrast Checker

Click the Contrast icon in the DevSuite Pro dock. A panel opens with foreground and background color fields.

2

Set Foreground & Background

Use the color picker or paste a hex value for each. Live preview updates as you change colors.

3

Read the Ratio

The big number (e.g. 4.8:1) is the contrast ratio. Higher is better. 3 is the bare minimum; 4.5 is target for normal text.

4

Check Grade Badges

Pass/fail badges for AA and AAA, normal and large text sizes, show at a glance what your combination qualifies for.

5

Adjust Until Passing

If failing, tweak colors. Darken foreground or lighten background (or vice versa) until the target tier shows Pass.

Klar til å prøve? Contrast Checker?

Installer DevSuite Pro gratis og lås opp 39+ utviklerverktøy for nettleseren din.

Legg til i Chrome Legg til i Edge Legg til i FireFox