Color Code Converter
Convert color values between HEX, RGB, and HSL.
Calculate the contrast ratio between a text color and a background color, and check whether it meets WCAG 2.1 AA and AAA standards. Helps you choose accessible color combinations.
This free tool checks whether a text-and-background color combination is readable for a wide range of users, including people with low vision, based on the W3C’s WCAG (Web Content Accessibility Guidelines) 2.1 standards.
It calculates the contrast ratio and shows at a glance whether it meets the AA and AAA thresholds for both normal and large text. Checking your color palette early in the design process helps avoid accessibility rework later.
AA is the minimum standard most sites should meet; AAA is a stricter standard. For normal text, AA requires a contrast ratio of at least 4.5:1, while AAA requires at least 7:1. Most websites aim for AA compliance.
WCAG defines large text as at least 18pt (~24px) at regular weight, or at least 14pt (~18.7px) bold. Because large text is easier to read than small text, the thresholds are relaxed — AA requires 3:1, and AAA requires 4.5:1.
It follows the WCAG 2.1 relative luminance formula. The ratio is calculated as (L1 + 0.05) / (L2 + 0.05), using the relative luminance of the lighter and darker colors. The result ranges from 1:1 (identical colors) to 21:1 (black on white).
No. All calculation happens entirely in your browser — nothing is sent anywhere.