Skip to content
My Blog

Search WPDesignVault

Try "image", "json", "schema" or "contrast". Use arrow keys to move through results.

Color Tools

WCAG Color Contrast Checker

Check text and background colours against WCAG 2 AA and AAA contrast requirements, and get a suggested accessible colour when a pair fails.

Runs in your browser. Nothing you enter is uploaded. Last updated
  • Contrast ratio—
UseAAAAA
Normal text
Large text
UI components & graphics—

Large heading text

Normal body text should be easy to read for everyone, including people with low vision.

Small print and captions need the most contrast.

How to use

  1. Enter the text colour and the background colour.
  2. Read the ratio and the pass or fail result for normal text, large text and interface elements.
  3. If it fails, use the suggested colour, which keeps the hue and adjusts lightness.

What this tool does

It uses the WCAG 2 relative-luminance formula to compute a ratio from 1:1 to 21:1. Translucent text colours are blended over the background first.

Why it matters

Sufficient contrast keeps text readable for people with low vision or colour-vision deficiencies, and for everyone reading in bright light.

Tips

  • AA requires 4.5:1 for normal text and 3:1 for large text (24 px, or about 18.66 px bold).
  • Interface components and meaningful graphics need 3:1 against adjacent colours (WCAG 1.4.11).
  • Check text on images and gradients at their lightest and darkest points.

Frequently asked questions

What contrast ratio do I need?

For WCAG 2.1/2.2 level AA: at least 4.5:1 for body text and 3:1 for large text and UI components. Level AAA asks for 7:1 and 4.5:1.

What about APCA and WCAG 3?

WCAG 3 is still a draft. Laws and procurement rules currently reference WCAG 2, so this tool uses the WCAG 2 formula.

Color Palette Generator

Create complementary, analogous, triadic and monochromatic palettes from one colour, plus a full 50–950 shade scale, and export…

CSS Gradient Generator

Build linear, radial and conic CSS gradients visually with multiple colour stops and copy production-ready code.

HEX to RGB Converter

Convert HEX colour codes (3, 4, 6 or 8 digits) to RGB and RGBA values instantly.

RGB to HEX Converter

Convert RGB or RGBA colour values to HEX codes, including 8-digit HEX with transparency.