Color & Contrast
Convert HEX, RGB and HSL and check WCAG contrast.
About the Color & Contrast
Enter a colour as HEX, RGB or HSL and see it in all three notations plus the closest Tailwind colour. Choose a background and the tool computes the WCAG contrast ratio, then reports pass or fail for AA and AAA at normal and large text sizes, with a live sample so you can judge legibility as well as the numbers.
Tip: Body text needs a ratio of at least 4.5:1 to pass AA. Large text (roughly 24px, or 19px bold) only needs 3:1, so a colour that fails for paragraphs may still be fine for headlines.
Color & Contrast is free, needs no sign-up and runs entirely in your browser, so what you paste never leaves your device.
How to use it
- Paste or type your input, or press Ctrl+V anywhere on the page.
- Adjust the options. The result updates instantly.
- Copy the output with the Copy button or Ctrl+C.
Topics
- color
- hex
- rgb
- hsl
- contrast
- wcag
Frequently asked questions
Is the Color & Contrast free to use?
Yes. The Color & Contrast is completely free, needs no account and has no usage limits.
Is my data uploaded when I use the Color & Contrast?
No. Everything is processed locally in your browser, so what you paste never leaves your device. The last 3 snippets are kept on this device only and you can clear them with one click.
How do I use the Color & Contrast?
Paste or type your input, or press Ctrl+V anywhere on the page. Results update instantly, then copy them with the Copy button or Ctrl+C.