Color Converter & Contrast
HEX, RGB, HSL, OKLCH, WCAG
Convert colours between HEX, RGB, HSL and OKLCH, check WCAG contrast ratios, and test a whole palette with a contrast matrix.
#FF5A1Frgb(255, 90, 31)hsl(16 100% 56%)oklch(68.2% 0.211 37.7)bg-[#ff5a1f]Contrast checker
Large heading
Normal body text looks like this on the background.
3.12:1
Palette contrast matrix
Paste a whole palette to check every text/background pair against WCAG 2.2.
Color Converter & Contrast — Convert colours between HEX, RGB, HSL and OKLCH, check WCAG contrast ratios, and test a whole palette with a contrast matrix. Free on ToolWand: no sign-up, no watermark, works offline.
How to use Color Converter & Contrast
- 1Open Color Converter & Contrast. It runs in your browser, no sign-up.
- 2Type or paste your input.
- 3Copy or download the result.
About Color Converter & Contrast
Color Converter & Contrast converts colours between HEX, RGB, HSL and OKLCH, checks WCAG contrast between text and background, and tests a whole palette with a contrast matrix.
When to use it
- Check that text colours pass accessibility contrast.
- Convert design colours into CSS formats.
- Find which pairs in a brand palette can be used together.
Tips
- WCAG AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1.
- OKLCH steps look even to the eye, which helps when building colour scales.
Questions
What contrast do I need?
WCAG AA requires 4.5:1 for normal text and 3:1 for large text (18pt+ or 14pt bold).
What is OKLCH?
A perceptual colour space used in modern CSS. Equal steps in lightness look equal to the eye.