Check whether your colours are readable and accessible.
Test foreground and background colours, preview the result, check WCAG AA and AAA outcomes, then copy clean HEX values or CSS variables for your design system.
Readable colour matters.
This sample updates as you change the foreground and background colours.
Copy the colour pairing
Use this in CSS, a design system, or a quick accessibility note.
:root {
--contrast-text: #111827;
--contrast-background: #FFFFFF;
}
Accessible examples to try
Start from a real palette or a safe high-contrast pairing, then adjust it for your project.
What the score means
The higher the ratio, the easier the combination is to read for more people and more display conditions.
Use at least 4.5:1 for body copy, navigation, links, buttons and most interface text.
Large text can pass at 3:1, but higher contrast usually still feels clearer and more professional.
7:1 is the stronger target for long reading, critical information, accessibility-first products and dashboards.