Color converter and WCAG contrast checker

Pick or type a color to see it in every format, then compare it with a second color to check contrast.

  • Free, no sign-up
  • Your files and data stay on your device
  • No watermarks or limits

0 bytes uploaded. Everything happens in this tab.

How to use it

  1. Type a color or choose it with the picker.
  2. Copy the HEX, RGB or HSL value.
  3. Choose a second color to see the contrast ratio and the WCAG result.

Example

Color #4338ca:

RGB: rgb(67, 56, 202)
HSL: hsl(244, 57%, 51%)
Contrast with white: 7.7:1 (AAA)

About this tool

Designers and developers move between color notations all day. HEX is compact, RGB is what screens use and HSL describes color the way people think about it, as hue, saturation and lightness. Converting by hand is tedious, so each value updates the others instantly.

The contrast checker computes the WCAG contrast ratio between two colors. Body text should reach 4.5:1 for level AA and 7:1 for AAA, and large text needs 3:1. Passing these thresholds is what makes text readable for people with low vision, and it is often a legal accessibility requirement.

All calculations are local and nothing is saved.

Frequently asked questions

What contrast ratio do I need?

At least 4.5:1 for normal text (AA) and 3:1 for large text. AAA asks for 7:1 and 4.5:1.

Can I type shorthand HEX?

Yes, #abc is read as #aabbcc.

What is HSL?

Hue (0-360), saturation and lightness in percent.

Is anything uploaded?

No.

Often used next