हिं हिन्दी

    Colour contrast checker (WCAG)

    Check text and background colours against WCAG AA and AAA.

    Large text 24px sample

    Normal body text at 16px. The quick brown fox jumps over the lazy dog. ₹1,299

    Contrast ratio—
    CheckNeedsResult

    Calculated in your browser. Nothing is sent anywhere.

    About this tool

    This tool calculates the WCAG 2 contrast ratio between a text colour and a background colour and shows whether it passes AA and AAA for normal and large text and for UI parts. If it fails, it suggests the closest text colour that reaches 4.5:1. The ratio is never rounded up, so a pass shown here is a real pass.

    At a glance

    What it does
    Check text and background colours against WCAG AA and AAA.
    Price
    Free, no sign-up
    Works in
    Your browser, on phone or computer. Works offline after the first visit.
    Privacy
    What you type never leaves your device.

    How to check colour contrast

    1. Enter or pick the text colour and the background colour.
    2. Read the ratio and the pass/fail table for AA and AAA.
    3. If it fails, press "Use this text colour" to try the suggested shade.

    Private

    Your text stays in your browser and is never sent to a server.

    Instant

    Results update as you type, with nothing to install.

    Free

    No sign-up, no limits and no ads inside your writing space.

    Frequently asked questions

    What contrast ratio do I need?

    WCAG AA needs at least 4.5:1 for normal text and 3:1 for large text (24px, or 18.66px bold) and for icons and form borders. AAA needs 7:1 for normal text and 4.5:1 for large text.

    How is the contrast ratio calculated?

    Ratio = (L1 + 0.05) / (L2 + 0.05), where L1 and L2 are the relative luminances of the lighter and darker colour. Black on white is 21:1, the maximum; identical colours are 1:1.

    Is #777777 on white accessible?

    Not for normal text: it is 4.47:1, just under 4.5:1. #767676 reaches 4.54:1 and passes AA.

    How are transparent text colours handled?

    Text with transparency is first blended onto the background, then the ratio of the blended colour is calculated, which matches what people see.