Colour contrast calculator

Contrast ratio between a text and a background colour (HEX, RGB or HSL) against the WCAG 2.x thresholds, with text and button samples.

#rrggbb, rgb(), rgba(), hsl()

Result

Sample heading

Body text at a normal size to judge legibility.

Sample button

11.07:1

  • AA normal text · minimum 4.5:1
  • AA large text · minimum 3:1
  • AAA normal text · minimum 7:1
  • AAA large text · minimum 4.5:1

Thresholds from WCAG 2.2 success criteria 1.4.3 and 1.4.6. Large text means 18pt, or 14pt bold.

Scope and limits

  • Transparent colours are blended over the background (and the background over white) before measuring.
  • Two colours passing does not make a whole email accessible.

Related tools and resources

Automatic checks for alt text, language, link names, headings and font size, plus the items that need a human review.

HTML and content

Build a table-based HTML signature with your details, colours and an optional logo, preview it in isolation and copy it as HTML or rich text.

HTML and content
Mailiqo

Keep your email templates versioned

Mailiqo stores your templates with versions: publish a new one or go back to the previous one without touching your application code.

See what Mailiqo includes