Skip to content

Color Converter & Contrast Checker

Convert colors between HEX, RGB and HSL with a color picker, and check the contrast ratio of text and background colors against WCAG AA and AAA.

Free No sign-up Updated

Enter a valid HEX, RGB or HSL color.

Contrast checker (WCAG 2)

Large text preview

Normal text preview: the quick brown fox jumps over the lazy dog.

How to use Color Converter & Contrast Checker

  1. 1 Type a color in any format — #0f766e, rgb(15, 118, 110) or hsl(175, 77%, 26%) — or pick one with the color picker.
  2. 2 Copy the color as HEX, RGB or HSL for CSS, design tools or code.
  3. 3 In Contrast checker, enter a text color and a background color.
  4. 4 Check the WCAG results: aim for at least AA (4.5:1) for normal text.

Working with color formats

Design tools often give colors in HEX, while CSS frameworks, canvas code and image libraries may need RGB or HSL. HSL is especially handy for building palettes: keep the hue, then change lightness to create hover states, borders and backgrounds that match.

Accessible color contrast

About one in twelve men has some form of color blindness, and many people read on bright phone screens outdoors. The Web Content Accessibility Guidelines (WCAG) require a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. Check every text and background pair in your design, including buttons and placeholder text.

Building a QR code in your brand colors? Test the contrast here first, then use the QR Code Generator.

Frequently asked questions

What is the difference between HEX, RGB and HSL?

They describe the same colors in different ways. HEX and RGB specify the red, green and blue channels; HSL uses hue, saturation and lightness, which is easier for creating lighter or darker variations of a color.

What contrast ratio do I need?

WCAG 2 level AA requires 4.5:1 for normal text and 3:1 for large text (about 24 px, or 19 px bold). Level AAA requires 7:1 and 4.5:1. Higher contrast makes text readable for more people, including those with low vision.

Why does accessibility contrast matter for SEO?

Readable text keeps visitors on the page, and accessibility audits such as Lighthouse flag low-contrast text. Accessible sites also reach a larger audience.

Is anything uploaded?

No. All conversions and contrast calculations run in your browser.

Related tools