WCAG Color Contrast Checker

Check contrast ratio of two hex colors (foreground then background, one per line) against WCAG AA/AAA.

About this tool

Uses the WCAG 2.x relative luminance formula. Accepts 3- or 6-digit hex. Large text means 18pt or 14pt bold and up.

Related: JSON Formatter & Validator · Base64 Encode & Decode · URL Encoder & Decoder · SHA-256 / SHA-1 Hash Generator · Unix Timestamp Converter