Developer tools
Convert HEX, RGB and HSL colors and check WCAG contrast.
Enter a color as HEX, rgb() or hsl(), or use the picker. Set a background to check WCAG contrast.
#7c3aed equals rgb(124 58 237) and hsl(262 83% 58%).
WCAG AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1 and 4.5:1. Transparency is ignored in the contrast check.