How to use
- Enter or pick the foreground colour using the colour input on the left.
- Enter or pick the background colour using the colour input on the right.
- Read the contrast ratio and the WCAG 2.1 pass/fail badges for normal text (AA requires 4.5:1), large text (AA requires 3:1), and UI components (3:1).
- Click the swap button to reverse the colours and verify both directions.
Examples
- Foreground #767676 on background #ffffff produces a ratio of 4.48:1, which fails AA for normal text but passes for large text.
- Foreground #000000 on #ffffff gives 21:1, passing every WCAG 2.1 level including AAA.