KickSolve • Free • Private

Color Contrast Checker (WCAG)

Test a text and background color pair against WCAG 2.1. Get the contrast ratio, a live preview and clear pass or fail results for AA and AAA, plus a suggested fix when it fails.

WCAG 2.1 AA and AAALive previewFix suggestions
Contrast ratio
0:1

Large text sample

The quick brown fox jumps over the lazy dog. Small body text needs more contrast than large headings.

UI component

WCAG 2.1 results

Each row is a separate requirement.

How to use Contrast Checker on KickSolve

Three quick steps, no account needed.

Choose your two colorsEnter or pick the text color and the background color. HEX, RGB and HSL all work.
Read the ratioSee the contrast ratio and pass or fail for normal text, large text and UI components.
Fix it if it failsUse a suggested color to reach AA or AAA while keeping the same hue.

Why choose KickSolve

Built for speed, privacy and clean results.

Private by designYour colors never leave your browser.
Live resultsThe ratio and every pass or fail update as you type or pick a color.
Every requirementNormal text, large text and non-text UI each get their own AA and AAA result.
Fix suggestionsWhen a pair fails, the tool finds the closest text color that passes.

What you can do with Contrast Checker

Everything this tool offers.

Contrast ratioExact WCAG 2.1 ratio from 1:1 to 21:1.
AA and AAASee both conformance levels at a glance.
Large text rulesUses the 3:1 and 4.5:1 limits for 18 pt or 14 pt bold text.
UI componentsChecks the 3:1 rule for borders, icons and focus rings.
Live previewSee your colors on real sample text and a UI element.
Swap colorsFlip text and background in one click.
Fix suggestionsGet a passing color with the same hue and saturation.
Any color formatPaste HEX, rgb() or hsl(), with or without transparency.

About Contrast Checker on KickSolve

How contrast is measured and how to read the results.

What is a contrast ratio?

WCAG defines contrast ratio as (L1 + 0.05) divided by (L2 + 0.05), where L1 is the relative luminance of the lighter color and L2 that of the darker one. Luminance is worked out from the linear red, green and blue values, weighted 0.2126, 0.7152 and 0.0722. The result runs from 1:1 (no contrast at all) to 21:1 (black on white).

WCAG levels and thresholds

Level AA is the usual legal and policy target. It asks for 4.5:1 on normal text, 3:1 on large text, and 3:1 on user interface parts such as input borders, icons and focus rings. Level AAA is stricter, at 7:1 for normal text and 4.5:1 for large text.

What counts as large text?

WCAG treats text as large when it is at least 18 point (about 24 px), or at least 14 point (about 18.7 px) and bold. Anything smaller is normal text and needs the higher ratio.

Why the ratio is never rounded up

A ratio of 4.499 does not meet 4.5. This tool cuts the ratio down to two decimals, so it can never show a pass for a pair that actually fails. Some checkers round to the nearest hundredth instead, so the same pair can show a value one hundredth higher elsewhere.

What this checker does not cover

Passing the numbers does not guarantee readability. Thin fonts, tiny sizes, busy backgrounds and text over images can still be hard to read. This tool tests the WCAG 2.x ratio, which is the version most accessibility rules currently refer to. It does not calculate APCA, the method proposed for WCAG 3.

Need a color in another format? Convert it with the Color Converter. For text over a gradient, check the lightest and darkest stops from the Gradient Generator, and minify your finished stylesheet with the HTML, CSS and JS Minifier.

WCAG contrast requirements

The minimum ratios this checker tests.

ContentLevelMinimum ratioSuccess criterion
Normal textAA4.5:11.4.3 Contrast (Minimum)
Large textAA3:11.4.3 Contrast (Minimum)
Normal textAAA7:11.4.6 Contrast (Enhanced)
Large textAAA4.5:11.4.6 Contrast (Enhanced)
UI components and graphicsAA3:11.4.11 Non-text Contrast

Example color pairs and their ratios

Real values from the same formula this tool uses.

Text on backgroundRatioAA normal textAAA normal text
#000000 on #FFFFFF21.00:1PassPass
#767676 on #FFFFFF4.54:1PassFail
#777777 on #FFFFFF4.47:1FailFail
#FFFFFF on #4F46E56.28:1PassFail
#FFFFFF on #F0572D3.43:1FailFail
#1F2937 on #F3F4F613.33:1PassPass

Frequently asked questions

Quick answers.

What is a good contrast ratio?

For body text aim for at least 4.5:1, which meets WCAG AA. A ratio of 7:1 or more meets AAA. Large text and UI components need at least 3:1 for AA.

What is the minimum contrast for WCAG AA?

Normal text needs 4.5:1, large text needs 3:1, and user interface components and graphics need 3:1.

What counts as large text?

Text that is 18 point (about 24 px) or larger, or 14 point (about 18.7 px) or larger and bold.

Does the checker handle transparent colors?

Yes. A transparent text color is blended with the background, and a transparent background is blended with white, before the ratio is calculated.

Why does it show a slightly lower ratio than another tool?

WCAG does not allow rounding up, so this tool truncates to two decimals. For example, #777777 on white has an exact ratio of about 4.478:1, shown here as 4.47:1, while a tool that rounds would show 4.48:1. Both agree that it fails AA for normal text.

Does it check APCA?

No. This tool tests the WCAG 2.x contrast ratio. APCA is a different method proposed for WCAG 3 and gives different numbers.

How is the suggested color chosen?

It keeps your text color's hue and saturation and changes only the lightness, searching both lighter and darker for the smallest change that reaches the target ratio on your background.

Is my data uploaded?

No. Every calculation happens in your browser and nothing is sent to a server.

More free tools from KickSolve

Related tools.