Contrast Checker

Free Contrast Checker online.

Runs in your browser — nothing is uploaded

Nothing is uploaded. Counting happens on your device.

Drop a .txt file here Tap to choose a .txt file

or browse your device — you can also paste (Ctrl+V)

Your camera and gallery open from the file picker

One file at a time. Files over 200 MB may be too large for browser processing.

    Your result will appear here.

    Free, no account, no sign-up. Nothing is uploaded. Everything runs on your device.

    Text is only readable when it stands out enough from its background, and the WCAG 2.x standard measures that with a contrast ratio from 1 to 1 up to 21 to 1. This checker takes two colours — the first is the text, the second is the background — and reports the ratio plus whether the pair passes each level: AA needs 4.5 to 1 for normal text and 3 to 1 for large text, while AAA needs 7 to 1 and 4.5 to 1. White on black scores 21 to 1 and passes everything; a mid-grey on white can pass AA for large text while failing it for normal text, and the tool says exactly which levels pass. The ratio comes from the standard relative-luminance formula, so it matches what accessibility auditors compute. Enter the colours as hex codes, rgb() or hsl() values, one per line or joined with the word on. The check runs entirely in your browser.

    How to use Contrast Checker

    1. Paste your text type, paste (Ctrl+V) or drop a .txt file into the box above.
    2. Click Convert the tool runs entirely in your browser — nothing is uploaded.
    3. Read your results they appear below the tool as soon as the conversion finishes.
    4. Download the result save it for your records.
    5. Convert another clear the box and paste new text — no sign-up, no limits.

    Format facts

    InputAny plain text, or a .txt file (dropped or browsed).
    EngineBuilt-in browser engine
    CategoryDeveloper Tools

    Limits

    • Browser processing has practical limits: files over 200 MB (or very long media) may be too large for your device. You will get an honest “too large” message, never a fake result.
    • Pasted content is handled as plain text — formatting from documents is not preserved.

    Frequently asked questions

    Which colour is the text and which is the background?

    The first colour you enter is the text and the second is the background. The ratio is the same either way round, but the labels in the result follow that order.

    What do AA and AAA mean?

    They are WCAG 2.x conformance levels. AA needs a ratio of 4.5 to 1 for normal text and 3 to 1 for large text; AAA needs 7 to 1 and 4.5 to 1. The tool reports which levels the pair passes.

    What counts as large text?

    In WCAG terms, large text is at least 18 points, or 14 points bold — roughly 24 pixels, or 18.66 pixels bold. Large text is allowed a lower ratio because thicker strokes stay readable at lower contrast.

    How is the ratio calculated?

    From the standard WCAG 2.x relative-luminance formula, which weights red, green and blue by how bright the human eye finds them. The result matches what accessibility auditors compute.