Palette Lab · Color tools

Color contrast checker Make every word easier to read.

Check a single pair or compare a whole palette. Inspect the actual text/background direction, resolve transparency and keep a report of the results.

Free · WCAG 2.2 ratios · No account required

Check a color pair

Compare text and background using the WCAG 2.2 relative-luminance formula.

Contrast ratio

6.00:1

The ratio is displayed to two decimals. Pass/fail uses the unrounded value.

Normal text · AA≥ 4.5:1✓ Pass
Normal text · AAA≥ 7:1× Fail
Large text · AA≥ 3:1✓ Pass
Large text · AAA≥ 4.5:1✓ Pass
Required UI / graphics≥ 3:1✓ Pass

Large text means at least 18 pt (24 CSS px), or 14 pt bold (about 18.67 CSS px).

The 3:1 UI check applies to visual information needed to identify controls, states or graphics. Context and WCAG exceptions still matter.

A little color, clearly read.

This paragraph previews the selected foreground on the rendered background. Check your actual font, size, weight and context too.

Preview only. Both text and button outline use the selected foreground.

Rendered sRGB colors after compositing
Foreground
rgb(51 102 153)
Background
rgb(255 255 255)
Convert the foreground color

This tool checks a solid color pair, not a whole page. Images, gradients, hover/focus states and accessibility beyond contrast need separate evaluation.

Measure the pair, then review the context

A useful number comes with clear assumptions.

Review the palette before assigning roles

A palette can contain useful text colors, useful backgrounds and decorative accents. Whole-palette mode compares every ordered pair of 2–12 entries. Select a target and inspect the matrix; the diagonal is omitted, while duplicate roles stay in the input. The illustration is conceptual, not a measured contrast chart.

Tactile comparison board with color swatches and simple markers

Take a promising pair into the design

Select a matrix cell to see its text/background direction and separate checks. Send it to single mode to explore adjustments. Transparent colors require the real opaque layer beneath the backgrounds; after compositing, reversing a pair can change its ratio. Review actual fonts and context too.

Ivory and navy conceptual text panels beside a palette and glass lens

How to check color contrast

Use the actual colors and layers from your design.

01

Choose one pair or a palette

Use single mode for two colors. Whole-palette mode accepts 2–12 colors, optional labels and supported JSON exports from the palette generator or image extractor.

02

Set the layers and target

If a palette contains alpha, supply the actual opaque backdrop. Select the threshold for your final typography; pass/fail uses the unrounded ratio. Rows are text and columns are backgrounds.

03

Inspect, adjust and save

Choose a matrix cell, preview its checks and optionally continue in single mode. JSON and CSV save every directed pair, including failures; the visible filter does not change the report.

Color contrast checker FAQ

What the WCAG ratio tells you, and what it does not.

What contrast ratio do I need for WCAG AA?

Normal text needs at least 4.5:1. Large text needs at least 3:1. For WCAG, large text is at least 18 pt, or at least 14 pt when bold: approximately 24 CSS px and 18.67 CSS px respectively. Other requirements and exceptions still apply.

What is the difference between AA and AAA contrast?

AAA requires at least 7:1 for normal text and 4.5:1 for large text. The separate 3:1 non-text criterion covers necessary visual information in UI components and graphics; it is not a universal AAA threshold for all non-text content.

Why does #777777 on white fail normal-text AA?

Its ratio is about 4.478:1, below 4.5:1. WCAG thresholds must not be passed by rounding up. This tool rounds the display but compares the full calculated ratio to each threshold.

How are transparent colors checked?

The tool composites a translucent foreground over the background in sRGB. A translucent background also needs a specified opaque underlying layer. Without that layer, no new ratio is presented and copying stays disabled. Images and gradients require a different evaluation of the actual pixels.

Can I check OKLCH or Lab colors?

Yes. Out-of-sRGB colors are explicitly gamut-mapped to sRGB before compositing and measurement. A notice identifies this assumption. The result describes the mapped sRGB pair, not every possible wide-gamut rendering or display.

Will the suggested color be applied automatically?

No. Choose the foreground or background and a target, inspect a suggestion, then apply it. The search retains opacity and moves in sRGB toward black or white. If neither direction can meet the target with the other settings fixed, it reports that limit. The latest applied change can be undone.

Does passing this checker make a website accessible?

No. A passing color pair does not test keyboard access, semantics, focus states, images, gradients or the whole design. It is also not legal certification. Evaluate the actual interface and all applicable accessibility requirements.

Is this an APCA score?

No. This page uses the WCAG 2.x relative-luminance contrast ratio and AA/AAA thresholds. APCA is a different method and its values must not be interpreted using these thresholds.

How can I check a whole palette?

Choose Whole palette and paste 2–12 colors separated by new lines, commas or semicolons; commas inside color functions are preserved. You can add labels or paste a supported color array, image-extractor colors array with hex fields, or the palette generator’s named color map. Invalid entries stop the check rather than being skipped.

Why are both directions shown and the diagonal omitted?

Rows are text colors and columns are backgrounds. An opaque pair has the same ratio in reverse, but alpha compositing can make the directions differ. The same entry against itself is omitted; duplicate entries with different indices are retained. There are n × (n − 1) ordered pairs, up to 132 for 12 entries.

Do filters change the downloaded report?

No. The passing-only filter changes the matrix view. JSON and CSV always include every directed pair and its result against the selected target. JSON also records every criterion and the sRGB assumptions. Valid parameters are saved in the link fragment, and processing stays in the browser.

Technical references: CSS Color 4 · Color.js · WCAG 2.2 · 1.4.3 · 1.4.6 · 1.4.11

Check before you ship

Start with your actual foreground and background.

A contrast result applies to the tested pair and assumptions, not to an entire page.