Contrast checker explained
Calculate the WCAG 2.2 contrast ratio between two opaque sRGB colors. Normal-text and large-text thresholds are reported separately, using the full ratio before rounding for display.
Worked example
Black on white has a ratio of 21:1 and meets the listed text thresholds. Identical foreground and background colors have a ratio of 1:1.
Before you rely on the result
Contrast alone does not establish accessibility. Transparent colors, gradients, images, focus indicators and rendered text size need separate review. Large text is at least 18pt regular or 14pt bold.
Cite this page
ToolOctopus. “Contrast checker.” Updated . https://tooloctopus.com/contrast-checker.
Add an access date if your instructions require one.
Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. License and source code.