Skip to content
Colour Lab

Contrast Checker

WCAG contrast checker: test any text and background colour pair against WCAG 2.1 AA and AAA ratios, with a live preview.

  • #contrast checker
  • #wcag contrast
  • #color contrast checker
  • #contrast
  • #wcag
  • #accessibility
  • #a11y
  • #colour
  • #ratio
100% client-side

Runs in your browser. Your data never leaves this device.

The Workbench
Contrast Checker — workspaceLive
Contrast Ratio

Large Text (24px+)

Normal text at 16px. The quick brown fox jumps over the lazy dog.

Small text at 14px for fine print and captions.

About WCAG Contrast Requirements
  • AA Normal: 4.5:1 minimum for text smaller than 18pt (or 14pt bold)
  • AA Large: 3:1 minimum for text 18pt+ (or 14pt+ bold)
  • AAA Normal: 7:1 minimum for enhanced accessibility
  • AAA Large: 4.5:1 minimum for large text enhanced accessibility
Network requests0
Bytes uploaded0
Trackers fired0
The Guide

About Contrast Checker

/01 Checking colour contrast against WCAG

Enter a foreground and background colour and get the contrast ratio, along with a pass or fail against each WCAG level. The ratio runs from 1:1 for identical colours up to 21:1 for pure black on pure white.

The thresholds that matter: 4.5:1 for normal body text at AA, 3:1 for large text at AA, and 7:1 for normal text at AAA.

/02 What counts as large text, and what contrast does not cover

Large text means at least 18.66px bold or 24px regular. Below that it is normal text and needs the higher ratio. User interface components and meaningful graphics need at least 3:1 against what sits next to them.

Passing the ratio is a floor, not proof of readability. Thin weights, low-quality rendering and small sizes can still be hard to read at a technically passing ratio, and colour alone should never be the only way information is conveyed.

/03 How the contrast ratio is calculated

Contrast is not about how different two colours look in hue. It compares their relative luminance, a brightness measure weighted the way human eyes work: green counts for about 72 percent of perceived brightness, red about 21 percent and blue only about 7 percent. The ratio is (lighter + 0.05) divided by (darker + 0.05), running from 1:1 for identical colours up to 21:1 for black on white.

That weighting explains results that surprise people. Toolspark's blue, #3B58E2, reaches about 5.7:1 against white, so white text on it passes AA for normal text. The brand yellow, #FFE066, manages only about 1.3:1 against white because yellow is almost as luminous as white, yet near-black text on that yellow scores around 13:1. This contrast checker does the calculation instantly for any pair you enter.

/04 WCAG 2.1, 2.2 and what comes next

The contrast rules have been stable for years. WCAG 2.1 and the newer WCAG 2.2 use the same thresholds: 4.5:1 for normal text and 3:1 for large text at level AA, 7:1 and 4.5:1 at AAA. Interface parts such as input borders, icons and focus indicators need 3:1 against their surroundings under a separate rule.

Those WCAG 2 thresholds are what legal accessibility requirements point to, including ADA cases in the United States and the European Accessibility Act, which has applied to many products and services since June 2025. A newer method called APCA is being explored for WCAG 3, but it is still a draft, so audits continue to measure with the ratios this tool reports.

FAQ

Questions about Contrast Checker.

What contrast ratio do I need?
4.5:1 for normal text and 3:1 for large text to meet AA. AAA asks for 7:1 and 4.5:1 respectively. Interactive controls and important graphics need 3:1 against adjacent colours.
Does contrast apply to disabled buttons?
WCAG exempts disabled controls from the contrast requirement, but an unreadable disabled state is still a usability problem — exempt is not the same as good.
Why does my text look hard to read despite passing?
The ratio does not account for font weight, size or rendering. Thin type at a small size can pass numerically and still be uncomfortable, so treat the threshold as a minimum rather than a target.
Does WCAG 2.2 change the contrast requirements?
No. WCAG 2.2 kept the 4.5:1 and 3:1 text contrast thresholds from WCAG 2.1. The APCA method under discussion for WCAG 3 is still a draft, so audits and accessibility law continue to use the WCAG 2 ratios.
Is this the same result as the WebAIM contrast checker?
Yes, it uses the same WCAG formula, so the ratios match. The results update as you change colours, with a live preview of normal and large text alongside the AA and AAA pass or fail marks.
Why does white text on my brand colour fail?
Bright oranges, greens, yellows and light blues are close to white in luminance, even when they look bold. Darken the colour until white text reaches 4.5:1, or switch to dark text, which often passes easily on those tones.
Related
Colour Converter

Convert hex to RGB, and between HSL, OKLCH, LAB, LCH and OKLAB, with a colour picker and every format shown at once.

hex to rgbrgb to hexcolor code converter
Harmony Generator

Color harmony generator: build complementary, triadic, analogous, split-complementary, tetradic and monochromatic schemes from one colour.

color harmonycomplementary colorscolor wheel generator
Tailwind Shade Generator

Tailwind color palette generator: turn one colour into a full 50 to 950 shade scale, as a Tailwind config or CSS variables in hex or OKLCH.

tailwind color palettetailwind color generatortailwind shades
Gradient Generator

CSS gradient generator for linear, four-corner and mesh gradients with optional grain. Copy the CSS or export a PNG background.

gradient generatorcss gradientbackground gradient generator
Pixel Picker

Color picker from image: upload a photo or screenshot and sample the exact hex colour of any pixel with a magnified zoom loupe.

color picker from imagehex color from imageimage color picker
Palette Extractor

Color palette from image: extract dominant, vibrant, muted, warm or cool colours from any photo, with hex codes to copy.

color palette from imageextract colors from imageimage to color palette
Palette Generator

Color combination generator: create colour palettes from a seed colour with multiple strategies, lock colours you like, and export them.

color combination generatorcolor palette generatorcolor scheme generator
Palette Collection

Browse 284 curated color palettes across artistic, nature, vintage, modern, soft, bold, seasonal and monochrome styles, and copy any colour.

color palettescolor palette ideashex color palettes
Colour Blindness Simulator

Color blindness simulator: preview an image or colour as people with protanopia, deuteranopia, tritanopia and five other colour vision types see it.

color blindness simulatorcolor blind simulatorred green color blindness