Text / background
—
Normal text: AA at 4.5:1; AAA at 7:1.
A role for every colour
Choose a background, text and accent. Bring them together in a preview, check their contrast, then take your four colours away as CSS or JSON.
01 · Compose
Short or full HEX: #ABC or #AABBCC. Colours are opaque sRGB.
02 · See
Only this preview uses your colours. The tool’s controls retain their own contrast.
Colour notebook
A light surface, readable ink and an accent to guide the eye. Adjust each role for your project.
The underlined link uses the Text role. The button pairs Accent with Text on accent.
03 · Check
Ratios are rounded for display; thresholds use unrounded values. These results check colour pairs, not the accessibility of a complete interface.
—
Normal text: AA at 4.5:1; AAA at 7:1.
—
Normal text: AA at 4.5:1; AAA at 7:1.
—
The 3:1 check applies only when this colour boundary is needed to identify a component or graphical object. Decorative accents do not always need this threshold.
04 · Take away
CSS and JSON use the displayed colours, normalized to six-digit codes. JSON also includes the checked pairs and their ratios.
The WCAG method compares the relative luminance of two opaque sRGB surfaces. It does not measure aesthetic harmony, paint matching or print accuracy. Images, transparency, gradients, hover and focus states need additional checks.
Send the tool to a designer, a colleague or a friend. Your current colours are not included in the shared link.