Home / Tools / Contrast checker

WCAG Contrast Checker: Text and Background Color Contrast Ratio

Check the contrast ratio of text and background colors against WCAG AA and AAA for normal text, large text and icons, and get a close color that passes.

Enter a text color and a background color. You get the contrast ratio, a pass or fail for each WCAG level, a live preview, and a nearby color that passes if yours does not.

What it does

Frequently asked questions

What contrast ratio do I need?
WCAG AA asks for 4.5 : 1 for normal text and 3 : 1 for large text and for icons and input borders. AAA asks for 7 : 1 and 4.5 : 1.
What counts as large text?
At least 18 point (24 px) or 14 point (about 18.7 px) bold.
Does this replace testing with real users?
No. A good ratio helps, but fonts, size and context also matter for readability.
Is anything sent to a server?
No.

Runs in your browser. Nothing you type is sent to this site. Updated 2026-10-11.

More tools

Code formatters

CSS beautifier CSS minifier HTML beautifier HTML minifier JavaScript beautifier JavaScript minifier JSON formatter YAML formatter XML formatter SQL formatter Markdown preview

Converters

Base64 encoder and decoder URL encoder and decoder Unix timestamp converter CSV to JSON JSON to CSV HTML entity encoder and decoder Number base converter Time zone converter JSON to TypeScript XML to JSON HTML to Markdown Date difference calculator

Text tools

Regex tester Remove duplicate lines Lorem ipsum generator Word counter Case converter Text diff checker

Color and images

Color converter Image to Base64 Image resizer

Network

Subnet calculator Download time calculator Common ports list CIDR to IP range IPv6 address expander and compressor MAC address formatter curl command builder

Server and files

Cron expression explainer chmod calculator HTTP status codes

Encoding and security

Password generator UUID generator Hash generator JWT decoder QR code generator Password strength checker Wi-Fi QR code generator