Color & Design
Color Converter
Convert colors between HEX, RGB and HSL with a live preview.
Open toolColor & Design
Test a foreground and background pair against WCAG 2.1 AA and AAA levels, and get a suggested colour that passes when it fails.
Good to know
Both use the same formula. This page focuses on WCAG levels and suggests a corrected colour when the pair fails your chosen level.
Hue and saturation stay fixed while lightness moves step by step towards the opposite of your background until the target ratio is reached.
It removes one common barrier. Keyboard access, focus visibility, semantic markup and clear labels matter just as much.
No. Test the darkest and lightest points of the background separately against your text colour.