Color Contrast in Graphic Design: WCAG 2.2 Rules and Before-and-After Examples

WCAG 2.2 color contrast guide cover comparing weak and strong text color combinations

Why does a graphic look beautiful on a large monitor but become difficult to read on a phone? A common reason is weak contrast between text and its background. Color contrast is measurable, and fixing it can improve clarity without changing the layout, copy or brand personality.

Quick answer: WCAG 2.2 Level AA specifies a contrast ratio of at least 4.5:1 for most normal text and at least 3:1 for large text. Certain meaningful non-text graphics and controls also need 3:1. These requirements have exceptions; consult the W3C text contrast guidance and non-text guidance for precise applicability.

Color contrast guide cover comparing low and high contrast typography
Good design communicates clearly, including at mobile sizes.

What does a contrast ratio actually measure?

Contrast ratio compares the relative luminance of two colors. A ratio of 1:1 means identical luminance; 21:1 is the maximum for black and white. Contrast is not simply about choosing opposite hues: two vibrant colors can look different yet have insufficient light-dark contrast.

To test a design, record the exact foreground and background hex values and use a WCAG contrast checker. Your eyes alone are not a reliable substitute, especially with small text, gradients or unfamiliar displays.

Before and after: same headline, different readability

Before and after: light gray A8A8A8 on white has a 2.38 to 1 contrast ratio, while dark 1B1B1B has 17.22 to 1
An original demonstration using identical text and background in both versions.

Before: “SALE TODAY” is written in #A8A8A8 on #FFFFFF. The measured contrast is approximately 2.38:1—too low for normal text under WCAG AA.

After: The same words use #1B1B1B on #FFFFFF, resulting in approximately 17.22:1. Nothing about the copy or layout changed. A controlled color adjustment made the content more legible.

Three color contrast rules designers should remember

1. Normal text: at least 4.5:1 at Level AA

This covers paragraphs, product details, navigation, button labels and other text that does not qualify as large text. Light gray captions on white are a frequent issue. Check the final output rather than relying only on the design editor preview.

2. Large text: at least 3:1 at Level AA

WCAG defines large text as at least 18pt regular or 14pt bold—approximately 24 or 18.5 CSS pixels respectively. The size of text within exported graphics can change when an image is scaled. If in doubt, aiming for the stricter 4.5:1 is a sensible choice.

3. Important non-text information: 3:1 where applicable

Some meaningful graphical objects, form borders and interface state indicators require 3:1 contrast with adjacent colors. There are exceptions, so see the W3C explanation of non-text contrast before making compliance claims.

Preserve your brand identity without losing readability

Imagine a brand uses an energetic red, #D51E37. On white, it has an approximate contrast ratio of 5.16:1, which exceeds Level AA for normal text. That does not mean it remains readable on light pink backgrounds or photography. Contrast depends on both colors in a pair.

Give brand colors specific roles: a tested dark neutral for body text, a reliable accent for links and actions, light backgrounds and separate decorative colors that need not carry critical copy. A consistent brand uses colors deliberately—not indiscriminately.

Five common mistakes to avoid

  1. Light gray on white: fashionable minimalism can make text illegible.
  2. Text over busy photography: contrast varies across the image; place text on a solid overlay or reposition it.
  3. Thin text on gradients: faint letter strokes can be difficult to perceive even when sampled colors pass.
  4. Color-only status messages: accompany color with labels or recognizable icons.
  5. Desktop-only testing: inspect the actual exported creative at its intended size on a phone.

A practical seven-step contrast audit

  1. Identify every headline, paragraph, detail and call to action.
  2. Record the actual foreground and background color values.
  3. Measure contrast with a WCAG-based contrast checker.
  4. Choose the correct threshold for normal or qualifying large text.
  5. Inspect meaningful icons, controls, input borders and focus indicators.
  6. Test the least contrasting parts of images and gradient backgrounds.
  7. Review visual hierarchy and brand consistency after making changes.

Before-and-after portfolio exercise

Design an event card with a headline, date, venue and registration button. Make a deliberately weak version with pale text and a low-contrast action. Then keep the words, imagery and layout identical while improving color values. Label both versions with their measured ratios. Explaining why the visual works is more persuasive than simply displaying a polished design.

How to use AI to critique color contrast

Act as an accessibility-aware graphic designer. Review this design's hierarchy and color roles. Identify the foreground/background hex pairs I should measure, explain which text requires 4.5:1 and which may qualify for 3:1, and suggest minimal palette adjustments that preserve the brand. Do not invent contrast measurements.

For more actionable creative-direction prompts, see 100 AI Prompts for Better Design. For design fundamentals including hierarchy, whitespace and alignment, explore The Designer's 50 Rules Nobody Teaches You.

Frequently asked questions

Does 3:1 work for every headline?

No. It applies to text that meets the WCAG large-text definition; smaller text generally needs 4.5:1 for AA.

Does WCAG apply directly to printed posters?

WCAG is a web-content standard. Its principles are useful for print, but WCAG is not itself a complete print accessibility standard.

Does passing contrast guarantee a good design?

No. Contrast solves one important readability problem; layout, hierarchy, wording, typography and usability still matter.

Official reading: Understanding Contrast (Minimum) and Understanding Non-text Contrast from W3C.