Check text against its background
Contrast is the ratio between the lighter and darker relative luminance, after sRGB channels are converted to linear light. Normal-text AA requires 4.5:1; large-text AA requires 3:1. The tool compares the unrounded ratio before displaying it.
When a pair fails AA for normal text, the result offers the nearest text color of the same hue and saturation that reaches 4.5:1, darker or lighter by the least; Use this text color puts it in the box. It is a suggestion to choose, not a change made for you.
Worked example
Black text on white has a 21:1 contrast ratio. Identical colors have a 1:1 ratio and fail the text thresholds.
Before you rely on the result
Opaque sRGB colors only. This is a color-pair check, not an accessibility audit. Large text means at least 18 point regular or 14 point bold; antialiasing and other page content can affect readability.
Tools for the same job
Help with the result
Cite this page
ToolOctopus. “Color contrast checker.” Updated . https://tooloctopus.com/color-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.