Skip to content

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.

HEX#FF5A1F
RGBrgb(255, 90, 31)
HSLhsl(16 100% 56%)
OKLCHoklch(68.2% 0.211 37.7)
Tailwindbg-[#ff5a1f]

Contrast checker

Background #ffffff

Large heading

Normal body text looks like this on the background.

3.12:1

✕ AA normal text
✓ AA large text
✕ AAA normal text
✕ AAA large text

Palette contrast matrix

Paste a whole palette to check every text/background pair against WCAG 2.2.

0 of 0 pairs pass

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

  1. 1Open Color Converter & Contrast. It runs in your browser, no sign-up.
  2. 2Type or paste your input.
  3. 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.

More tools