Color converter
Turn a HEX color into matching RGB and HSL values for your stylesheet.
Color & designCheck text contrast between two colors against WCAG AA and AAA thresholds.
Adjust the example inputs, then select Check contrast.
Compare an opaque text color and background color using the WCAG sRGB contrast formula. The result checks normal and large text thresholds; it covers color contrast rather than every accessibility requirement.
Choose the text foreground color.
Choose the solid background color behind the text.
Check the ratio and the AA and AAA text-size results.
WCAG large text is at least 18 points in regular weight or 14 points in bold weight. AA requires 3:1 for large text and 4.5:1 for normal text.
Not necessarily. This calculation assumes two solid, opaque sRGB colors. With images, gradients or transparency, check the actual composited colors at the least favorable point.