Handiwork
  • Home
  • Tools
  • Guides
  • Categories
  • About
Browse Tools
Handiwork
  • Home
  • Tools
  • Guides
  • Categories
  • About
Browse Tools

Popular tools

  • Online Excel Viewer
  • Passphrase Generator
  • GPA & CGPA Calculator
  • Keyboard Tester
  • Decision Wheel
  • QR Code Generator

Categories

  • Text
  • Image
  • Design & Color
  • PDF & Documents
  • Developer
  • Security
  • Calculators
  • Converters & Encoders
  • Productivity
  • Random & Decision

Resources

  • All Tools
  • Guides
  • Editorial Standards
  • Changelog
  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use
Browse all tools>
English

© 2026 Handiwork. Built and maintained by Handiwork.

All toolsAll design & color tools

Design & Color tool

Color Contrast Checker

Check the contrast ratio between two colors and test WCAG AA/AAA accessibility compliance.

Colors

Almost before we knew it,

we had left the ground. — large and normal text preview

Contrast ratio
17.06:1
WCAG level
AAA

WCAG compliance

AA · Normal text

Requires 4.5:1

Pass

AA · Large text

Requires 3:1

Pass

AAA · Normal text

Requires 7:1

Pass

AAA · Large text

Requires 4.5:1

Pass

UI components & graphics

Requires 3:1

Pass

Ratios follow the WCAG 2.2 relative luminance formula, calculated in your browser.

About the Handiwork Color Contrast Checker

The Color Contrast Checker measures the contrast ratio between a text color and its background and tells you whether it meets WCAG accessibility standards. Enter two colors as hex or RGB to see the exact ratio, a live preview, and pass/fail results for AA and AAA at normal and large text sizes — all calculated in your browser.

How to use the Handiwork Color Contrast Checker

  1. Enter a foreground (text) color and a background color.
  2. Read the contrast ratio and the live text preview.
  3. Check which WCAG levels — AA, AAA, normal, large — pass or fail.

What the contrast ratio means

Contrast ratio compares the relative luminance of two colors on a scale from 1:1 (identical) to 21:1 (black on white). WCAG 2.2 requires at least 4.5:1 for normal body text and 3:1 for large text to meet level AA, with stricter thresholds of 7:1 and 4.5:1 for level AAA.

Normal text vs. large text

WCAG defines large text as at least 18.66px bold or 24px regular. Because larger letterforms are easier to read, they are held to a lower contrast requirement. Non-text elements like icons, form borders, and focus indicators have their own 3:1 minimum under the UI components rule.

How the ratio is actually calculated

Each color is converted to relative luminance using the WCAG formula — a weighted sum of its red, green, and blue channels (0.2126R + 0.7152G + 0.0722B, after each channel is linearized) that models how the human eye perceives brightness differently across colors. The contrast ratio is then (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color’s luminance and L2 is the darker one’s, producing the familiar range from 1:1 up to 21:1.

Reading the pass/fail results

The tool checks your ratio against all four thresholds at once — AA normal (4.5:1), AA large (3:1), AAA normal (7:1), and AAA large (4.5:1) — so you can see immediately which levels a color pairing satisfies. Meeting AAA automatically means AA is satisfied too, since every AAA threshold is equal to or stricter than its AA counterpart.

Assumptions and limitations

  • A passing ratio does not guarantee that a design is accessible. Font weight, size, state changes, focus visibility, motion, and user testing still matter.
  • The checker evaluates two opaque sRGB colors. Transparency, gradients, images, filters, and compositing must be tested against the final rendered background.
  • WCAG defines large text by rendered size and weight. Confirm your CSS output rather than relying only on a design-file label.

Sources and standards

These authoritative references were used to verify the method and guidance on this page.

  • WCAG 2.2 — Contrast (Minimum) — World Wide Web Consortium (W3C)
  • WCAG 2.2 — Contrast (Enhanced) — World Wide Web Consortium (W3C)
  • WCAG 2.2 — Non-text Contrast — World Wide Web Consortium (W3C)

Frequently asked questions

What contrast ratio do I need to pass WCAG AA?

+

At least 4.5:1 for normal text and 3:1 for large text. For the stricter AAA level, you need 7:1 for normal text and 4.5:1 for large text.

What color formats can I enter?

+

You can enter colors as hex (#1a2b3c or #abc) or as rgb(r, g, b). The checker converts them and computes the ratio automatically.

Does contrast apply to icons and borders too?

+

Yes. Meaningful non-text elements such as icons, input borders, and focus indicators should meet a 3:1 ratio against adjacent colors under WCAG’s UI components requirement.

If a pair passes AAA, does it also pass AA?

+

Yes. AAA’s thresholds (7:1 normal text, 4.5:1 large text) are always equal to or stricter than AA’s (4.5:1 and 3:1), so meeting AAA automatically satisfies AA at the same text size.

Method and guidance reviewed July 12, 2026 by Handiwork.

How we review tools

Go deeper

Understand the method and trade-offs

Accessibility · 9 minA practical guide to WCAG color contrastContrast is a ratio, not a design opinion—but passing one ratio is only part of accessible color use. This guide turns WCAG thresholds into a practical testing workflow.Read guideQR & visual delivery · 9 minHow to test a QR code before you print itA QR preview can look polished and still fail on paper. Verify the payload first, preserve the code’s geometry, and test the final material under realistic conditions before a large print run.Read guide

Related design & color tools

All design & color tools
  • CSS Gradient GeneratorCreate linear and radial CSS gradients visually, then copy a ready-to-use background rule.
  • CSS Box Shadow GeneratorCreate layered CSS box shadows with live preview, precise controls, presets, and copy-ready CSS.
  • CSS Border Radius GeneratorCreate rounded corners visually and copy a ready-to-use CSS border-radius declaration.
  • CSS Glassmorphism GeneratorCreate frosted-glass CSS effects with live controls for blur, opacity, borders, and shadows.
  • Color Palette GeneratorGenerate complementary, analogous, triadic, and other color harmonies from any base color.