WCAG 2 accessible colour contrast checker

Test a text and background colour against WCAG 2 AA and AAA, and get the closest colour that passes.

Check a colour pair

Use a hex value with 3 or 6 digits, like #1A2B3C.

Use a hex value with 3 or 6 digits, like #1A2B3C.

Type a hex value or use the picker. The result updates as you type.

Preview at your size and weight

Accessible text is text people can read without effort.

#767676 is the lightest grey that passes AA on white. It doesn't reach AAA.

4.54:1

Contrast ratio, WCAG 2.

    APCA Lc 71.6

    What WCAG 2 asks for

    Not everyone perceives colours the same way. A pair that’s easy for you to read can be hard or impossible for someone else. WCAG 2 measures the difference in relative luminance between text and its background, as a ratio from 1:1 to 21:1.

    Level AA asks for at least 4.5:1 for normal text and 3:1 for large text. Level AAA asks for 7:1 and 4.5:1. Since WCAG 2.1, the parts of an interface people need to see, such as input borders and icons, need 3:1 against the colours next to them.

    The 4.5:1 ratio compensates for the loss in contrast sensitivity that comes with vision loss of about 20/40, which W3C notes is typical at around age 80.

    What’s exempt

    Logos and brand names, text in a disabled control, and text that’s purely decorative or not visible to anyone don’t need to meet a ratio.

    Gradients and images

    Text on a gradient or a photo has to pass against every part of the background it crosses. Measure the lightest and darkest points, as the guide to contrast on gradients shows.

    WCAG 2 contrast requirements
    RequirementRatioApplies to
    AA 1.4.34.5:1Normal text
    AA 1.4.33:1Large text: 24 px and up, or 18.66 px and up in bold
    AA 1.4.113:1Interface components and meaningful graphics
    AAA 1.4.67:1Normal text
    AAA 1.4.64.5:1Large text

    Contrast on 1,000 pages, every week.

    ACHECKS checks every page of your site for contrast and the rest of WCAG, and lists the pages to fix in your dashboard.