Relative luminance
The calculation composites the colors before converting sRGB to linear light. Pass or fail uses the full ratio before display rounding.
Preparing your comprehensive developer toolkit
Practical Guide
Check WCAG 2.2 contrast for normal text, large text, and essential graphics. Preview solid or transparent HEX colors before using them.
It compares the relative luminance of two colors. Check the actual text and background colors together when choosing accessible combinations.
The calculation composites the colors before converting sRGB to linear light. Pass or fail uses the full ratio before display rounding.
Four- and eight-digit HEX notation places opacity in the final digit or pair.
Check short or long HEX values and layer transparent colors over white.
Compare the ratio with AA and AAA text thresholds and the AA threshold for essential graphics.
Read a heading and sample paragraph using the colors you entered.
Compare text and surface token pairs before adding them to a design system.
Check icon or outline contrast against adjacent colors in a chosen button or input state.
WCAG generally uses at least 18 pt (24 CSS px) at regular weight or 14 pt (about 18.67 CSS px) in bold.
Check the colors immediately behind the text, including the area with the weakest contrast. This tool evaluates one color pair at a time.
The calculation composites the colors before converting sRGB to linear light. Pass or fail uses the full ratio before display rounding.
Four- and eight-digit HEX notation places opacity in the final digit or pair.
Open the tool to try these features.