developer
Colour Contrast Checker

Check WCAG 2 contrast between a foreground and background colour — hex or rgb() input, transparency composited onto a chosen solid backdrop — with AA/AAA text and separate non-text verdicts.
Colours
The text or graphic colour — e.g. #1a2b3c or rgb(26, 43, 60).
The colour behind it — e.g. #f5f5f5 or rgb(245, 245, 245).
Not needed — the background is fully opaque, so nothing sits behind it.
Accepted formats: #rgb, #rgba, #rrggbb, #rrggbbaa, and rgb()/rgba() — comma or space syntax, with optional alpha. Translucent colours are composited onto the shown backdrop; values are never clamped.
Result
The quick brown fox jumps over the lazy dog
AaBbCc — large text
21:1contrast ratio
- AA · normal textneeds 4.5:1Pass
- AA · large textneeds 3:1Pass
- AAA · normal textneeds 7:1Pass
- AAA · large textneeds 4.5:1Pass
- Non-text / UI componentsneeds 3:1Pass
Non-text/UI contrast follows WCAG 1.4.11 and is reported separately — it is not a text threshold.
Measured colours
- Foreground
#000000 - Background
#ffffff
- Both colours are opaque — no compositing applied.
- Non-text/UI contrast follows WCAG 1.4.11 and is reported separately — it is not a text threshold.
Contrast ratio 21:1 — 5 of 5 WCAG checks pass.

