Skip to content

Developer and design

Color converter and contrast checker

Convert colours between HEX, RGB and HSL, and check text contrast against WCAG AA and AAA accessibility standards.

  • Free
  • No signup
  • Nothing stored

HEX, rgb() or hsl().

Formats

  • HEX#2448c8
  • RGBrgb(36, 72, 200)
  • HSLhsl(227, 69%, 46%)

Text contrast

Large text sample

Normal text looks like this.

7.40 : 1

  • AA normal text (4.5:1)Pass
  • AA large text (3:1)Pass
  • AAA normal text (7:1)Pass

Why use it

Design tools, CSS and brand guidelines rarely use the same colour format. Paste a colour in any common format and copy it in the one you need.

The contrast checker tells you whether text in that colour is readable on a background, using the same WCAG thresholds that accessibility audits and many public-sector rules require.

How to use it

  1. Enter a colour as HEX (#2448c8), RGB (rgb(36, 72, 200)) or HSL (hsl(227, 69%, 46%)), or use the picker.
  2. Copy the HEX, RGB or HSL value.
  3. Enter a background colour to check text contrast, and read the AA and AAA results.

How it works and its limits

  • Contrast ratios follow WCAG 2.2: 4.5:1 for normal text (AA), 3:1 for large or bold text (AA large), and 7:1 for AAA.
  • Large text means at least 24px regular or 18.66px bold.
  • Transparency is ignored; colours are treated as fully opaque.
  • Everything runs in your browser.

Questions

What contrast ratio do I need?

At least 4.5:1 for body text and 3:1 for large headings to meet WCAG AA, the level most accessibility laws refer to. 7:1 meets the stricter AAA level.

What is the difference between HEX, RGB and HSL?

They describe the same colours differently. HEX and RGB give red, green and blue amounts; HSL gives hue, saturation and lightness, which is easier for making a colour lighter or darker.

Does brand colour text need to pass contrast?

Yes, if people need to read it. Use a darker shade of the brand colour for text and keep the bright version for large shapes and accents.

More tools