नेपाली

Color Contrast Checker

Check text and background contrast against WCAG.

Works offline

About this tool

Enter two colours and the tool computes the WCAG 2.x contrast ratio (1 to 21) and reports pass or fail for each check: AA normal text (4.5:1), AA large text at 24 px or 19 px bold (3:1), AAA normal (7:1), AAA large (4.5:1), and buttons, icons and chart parts (3:1).

A sample block shows the combination at real size. When a normal-text check (AA or AAA) fails, the fix panel offers the same hue, only lighter or darker, moved just far enough to pass.

How to use it

  1. Enter the text colour and the background colour (or swap them).
  2. Read the ratio and the pass/fail row for each WCAG check.
  3. If a check fails, take the suggested fix colour.

Frequently asked questions

What contrast ratio do I need?

For normal text, 4.5:1 to meet AA and 7:1 for AAA. Large text (24 px, or 19 px bold) needs 3:1, and buttons and icons also 3:1.

How is the ratio calculated?

The WCAG 2.x relative-luminance formula, giving a value between 1 and 21, floored to two decimals.

What does the fix suggestion change?

Only lightness — the hue and saturation stay, and the colour is moved just far enough to pass the failing check.

Does it work without internet?

Yes. Open this page once while you are online; after that it keeps working without internet. We tested this with the network switched off.

Are my files uploaded?

No. This tool runs in your browser on your device, so what you enter or open here is not sent to our server.

Is it free?

Yes. This tool is free to use and needs no account.

Runs on your device. Nothing you enter or open here is uploaded.