When it is useful
Compare text and background colours for a button, article or interface.
Digital & Developer
Test two hex colours against WCAG text contrast ratios.

LET’S GET IT DONE
This is a sample of normal-sized text against your chosen background.
MAKE IT USEFUL
Calculate the contrast between two solid sRGB hex colours and check the WCAG AA and AAA text thresholds.
Compare text and background colours for a button, article or interface.
This checks solid opaque colours only. Background images, transparency, font rendering and other accessibility requirements are not assessed. A rounded ratio can look like a threshold even when the unrounded value falls just below it.
The information you enter here is processed within your browser by this tool, without an account. Do not rely on unverified results for important legal, financial or business decisions.
Read our privacy information →