Check the WCAG AA/AAA contrast ratio between two colors. Visualize rendering in real time and find accessible alternatives.
WCAG (Web Content Accessibility Guidelines) define minimum contrast ratios between text and background. Level AA requires a ratio ≥ 4.5:1 for body text (≥ 3:1 for large headings ≥ 18px or 14px bold). The stricter AAA level requires ≥ 7:1. Insufficient contrast penalizes users with low vision, hurts SEO and may breach legal accessibility requirements (ADA in the US, EN 301 549 in Europe). Always test your text/background pairs before publishing.
A ratio of 21:1 is the maximum (black on white). A ratio of 1:1 means no contrast (identical colors). For body text, aim for at least 4.5:1. For non-text UI elements (icons, borders, components), reach 3:1 (WCAG criterion 1.4.11). Our tool calculates the ratio using the official WCAG formula based on relative luminance, suggests accessible alternatives and visualizes the actual rendering of the color combination.