Pinatool

Color Contrast Checker

Test any foreground and background color combination against WCAG AA and AAA guidelines. Preview your text in context, verify UI borders, and fix low-contrast colors in one click.

Live preview#0f1d3a / #ffffff

Accessible by design

Readability starts with contrast.

This preview shows normal-sized body copy alongside larger, heavier text so you can judge the combination beyond a number.

Contrast ratio

16.70:1

AA passes

Enter a 3 or 6 digit HEX color.

Enter a 3 or 6 digit HEX color.

WCAG 2.1 Compliance Results

Threshold requirements for web accessibility standards.

Normal text

Body text below 24px, or below 18.66px when bold.

AA passesAAA passes

Large text

Headings & text at least 24px, or 18.66px when bold.

AA passesAAA passes

UI components

Controls, input borders, icons, and focus indicators.

AA passesAAA not defined

Try popular combinations

How It Works

1

Pick Foreground & Background

Enter your text and background 3- or 6-digit HEX codes or use the interactive color pickers to test your current design pairing.

2

Check WCAG AA & AAA Badges

See instant pass or fail badges for regular text (4.5:1 AA / 7:1 AAA), large headings (3:1 AA / 4.5:1 AAA), and UI controls (3:1 AA).

3

Apply Accessible Suggestions

If a pairing fails, click the suggested accessible shade to automatically adjust brightness while keeping your brand hue intact.

Color Contrast Checker Key Features

WCAG AA & AAA Verification

Evaluates body copy, large headings, and UI component boundaries against official Web Content Accessibility Guidelines.

One-Click Contrast Fixes

Finds the closest passing HEX shade to your original color so you can meet accessibility targets without losing your visual identity.

Live Contextual UI Preview & Quick Presets

Inspect real-time body text, headings, and interactive buttons, swap foreground and background in one click, or test popular preset pairings.

Frequently Asked Questions

What is a good color contrast ratio for WCAG AA and AAA?

According to Web Content Accessibility Guidelines (WCAG) 2.1, normal body text requires a contrast ratio of at least 4.5:1 for Level AA and 7:1 for enhanced Level AAA. Large text requires at least 3:1 for Level AA and 4.5:1 for Level AAA.

What counts as "large text" in WCAG guidelines?

Large text is defined as at least 18pt (24 CSS pixels) for regular font weights, or at least 14pt (approximately 18.66 CSS pixels) for bold text. Because larger and heavier text is easier to read, it has lower minimum contrast thresholds than standard body copy.

What are the contrast requirements for UI components, borders, and icons?

Under WCAG 2.1 Success Criterion 1.4.11 (Non-text Contrast), user interface components—such as form field borders, button outlines, focus indicators, and active icons—must achieve at least a 3:1 contrast ratio against adjacent colors. WCAG does not define a separate Level AAA threshold for non-text UI components.

How do the one-click accessible foreground suggestions work?

When your foreground color falls below the AA (4.5:1) or AAA (7:1) threshold for normal text, the checker finds the closest passing HEX shade against your current background while keeping your hue intact. Click any suggestion card to apply it immediately.

Does swapping foreground and background change the contrast ratio?

No. Relative luminance contrast is symmetrical between two colors, so swapping text and background always produces the exact same ratio. Using Swap colors lets you preview inverted light and dark badges, buttons, and cards in one click.