What contrast ratio do I need for WCAG AA?
4.5:1 for normal text and 3:1 for large text and for UI components such as input borders and icons. For AAA, normal text needs 7:1 and large text 4.5:1.
What counts as large text in WCAG?
Text of at least 18 point, which is 24 CSS pixels, or at least 14 point bold, about 18.66 CSS pixels. Anything smaller is normal text and needs the higher ratio.
Does a contrast ratio of 4.49:1 pass?
No. WCAG thresholds are exact and are not rounded, so 4.49:1 fails AA. This checker truncates the displayed ratio for that reason.
Did WCAG 2.2 change the contrast requirements?
No. WCAG 2.2 kept success criteria 1.4.3, 1.4.6 and 1.4.11 exactly as in 2.1. It added new criteria elsewhere, including Focus Appearance at AAA.
Does this follow WCAG 2.2 or APCA?
It uses the WCAG 2.x formula, which is what WCAG 2.2 and accessibility laws require today. APCA was explored for WCAG 3, which is still a draft, and it is not a conformance requirement.
Why does my brand colour fail?
Mid-tone colours such as light blues, oranges and greens often score between 2:1 and 4:1 on white. Use them for large text, fills behind white text or decoration, and a darker shade for body text.
Should I use white or black text on a coloured background?
Test both here with Swap and pick the higher ratio. On many saturated mid-tones, such as orange or bright green, black text passes AA where white does not.
How do I check contrast for text on an image or gradient?
Sample the lightest and darkest colours behind the text and test each one. If any fails, add a solid or semi-opaque overlay, or move the text to a calmer area.
Do logos and disabled buttons need to pass?
No. WCAG exempts logos and brand names, purely decorative content and inactive user-interface components from contrast requirements. Disabled controls should still be recognisable.
Does it support transparent or RGB colours?
It takes opaque hex colours, in 3- or 6-digit form, plus the colour pickers. For a semi-transparent colour, blend it over its background first and test the resulting hex value.