Color Converter & WCAG Contrast Checker
Check WCAG 2.1 AA/AAA accessibility contrast ratios and convert colors between HEX, RGB, and HSL.
Readable body copy ensures your website is accessible to everyone, including users with low vision or color vision deficiency.
How to Use This Tool
- Pick or paste a text (foreground) color and a background color in HEX format.
- See the exact WCAG 2.1 contrast ratio along with AA/AAA pass badges for normal text, large text, and UI components.
- Copy synchronized HEX, RGB, and HSL values with one click or swap colors instantly.
Formula & Method
All calculations run directly inside your browser using standard IEEE-754 floating-point arithmetic and Web Crypto APIs where applicable. No input values are sent to any external server.
Frequently Asked Questions
What contrast ratio is required for WCAG AA?
WCAG 2.1 Level AA requires at least 4.5:1 for normal body text and 3:1 for large text (18pt / 24px regular or 14pt / 18.66px bold) and UI components.
What is required for WCAG AAA?
Level AAA requires 7:1 for normal text and 4.5:1 for large text.
Related Tools
Calculate simplified aspect ratios, scale video or image dimensions proportionally, and copy CSS aspect-ratio.
Format, validate, minify, and sort keys in JSON locally in your browser with zero server uploads.
Generate cryptographically secure random passwords and passphrases with live entropy bits and crack-time estimates.