Check WCAG AA and AAA accessibility contrast ratios between two colors instantly. Essential for accessible UI design.
This tool calculates the luminance contrast ratio between any two colors and instantly reports whether they pass WCAG 2.1 Level AA and Level AAA accessibility standards. Enter hex color values for your foreground text and background, and see the ratio alongside pass/fail badges for normal text, large text, and UI components.
All calculations happen locally in your browser using the WCAG relative luminance formula — no color data is ever sent to a server. Use it to verify your design system tokens, audit existing interfaces, or pick accessible color pairs before shipping.
WCAG 2.1 Level AA requires a minimum contrast ratio of 4.5:1 for normal text (under 18pt or 14pt bold) and 3:1 for large text (18pt or 14pt bold and above). UI components and graphical objects also need at least 3:1 against adjacent colors.
Level AA is the standard legal compliance target for most products. Level AAA is the enhanced standard, requiring 7:1 for normal text and 4.5:1 for large text. AAA is recommended for documents and content read by users with significant visual impairments.
No — contrast ratio is a property of the rendered color, not its notation. Hex #FF5733, RGB(255,87,51), and HSL(11,100%,60%) all describe the same color and produce the same ratio. This tool accepts hex input and converts internally using the WCAG relative luminance formula.