A contrast ratio of 4.499:1 fails WCAG. It doesn’t count as close enough. The minimum for normal text is 4.5:1, and the W3C’s WCAG 2.2 guidance says computed ratios should not be rounded.

Large text and UI components get a lower bar of 3:1. Accessibility rules in the United States and the European Union point back to all of these numbers, which is why they matter beyond design taste. Under the hood, color contrast is a luminance measurement scored from 1:1 to 21:1, and it decides whether text and interface elements stay readable against their background.

What is color contrast?

Same text shown at readable and unreadable contrast levels

Take the luminance of a foreground color, compare it to the luminance of the background, and write the gap as a ratio. Identical colors land at 1:1. Black on white lands at 21:1. Whether a visitor can read your paragraph or find your button depends on where a pair falls on that scale.

People use the word in two ways. In art and color theory it often means a difference in hue, like blue against orange. In accessibility it means lightness only. A red and a green with the same luminance have almost no usable contrast, even though they sit far apart on a color wheel.

Designers already know contrast as a visual hierarchy tool. WCAG tests the measurable version, and that is the one lawyers cite too.

Who depends on it

More people than most teams expect. Low vision users need a strong luminance difference to separate text from its background. People with color vision deficiency lose hue cues but still see lightness, so lightness has to carry the message. Contrast sensitivity also drops with age, and anyone on a phone in direct sunlight or a dimmed laptop screen gets a taste of the same problem.

The W3C sets the 4.5:1 minimum for normal text to compensate for roughly 20/40 vision, which is the typical acuity loss at about age 80 (W3C Understanding SC 1.4.3).

How common the problem is

Very. Low contrast is the most frequent accessibility failure on the web, and it is getting worse. WebAIM’s 2026 Million report found low contrast text on 83.9% of the one million home pages it scanned, up from 79.1% in 2025.

The fix is usually cheap. A color value in a stylesheet changes and most of the job is done.

Where is graphic design headed in 2026?

Explore the newest graphic design statistics: industry growth, creative trends, job outlook, and insights shaping the design world.

Check the Data →

How is the contrast ratio calculated?

WCAG contrast thresholds set out by text size

Add 0.05 to the relative luminance of each color, then divide the lighter result by the darker one. Written out, that is (L1 + 0.05) / (L2 + 0.05), with L1 for the lighter color and L2 for the darker. The 0.05 accounts for ambient light reflecting off a screen.

Relative luminance runs from 0 (black) to 1 (white). Green counts for the most because the eye reads it as much brighter than red, and red as brighter than blue. That gives the weights in L = 0.2126 R + 0.7152 G + 0.0722 B.

Step by step

  1. Convert each sRGB channel to a 0 to 1 value by dividing by 255.
  2. Linearize each channel. If the value is 0.04045 or lower, divide it by 12.92. Otherwise, add 0.055, divide by 1.055, and raise the result to the power 2.4.
  3. Apply the weights (0.2126, 0.7152, 0.0722) to red, green and blue, then add the results.
  4. Put both luminance values into the ratio formula, lighter color on top.
  5. Compare the result to the threshold. Do not round it up.

Step one starts from RGB channel values. If your palette is in hex, a HEX to RGB converter gets you the numbers.

Worked example with #767676 on white

Gray #767676 has channel values of 118, 118, 118. Divide by 255 and you get 0.4627. Linearized, that becomes 0.1812, which is also the luminance, since all the channels match and the weights sum to 1.

White has a luminance of 1, so the ratio is (1 + 0.05) / (0.1812 + 0.05) = 4.54:1. That clears the 4.5:1 AA minimum for normal text. Barely, but it clears it.

Go one step lighter to #777777 and the luminance rises to 0.1845. The ratio drops to 4.48:1. You can’t see the difference between the two grays, and the second one still fails. That is why #767676 keeps getting cited as the lightest gray that works on white.

Common reference values

Foreground on white Contrast ratio Passes AA for normal text
#000000 21:1 Yes
#767676 4.54:1 Yes
#777777 4.48:1 No
#999999 2.85:1 No
#FF0000 4.00:1 No
#00FF00 1.37:1 No

Pure red fails normal text at about 4:1, which catches a lot of designers off guard. Pure green is far worse.

Transparency changes the math

Opacity and alpha values blend the foreground into whatever sits behind it. The ratio has to be calculated on the final blended color, not on the value written in your stylesheet.

When all you have is the blended color as an RGB triplet and the checker wants a hex code, a RGB to HEX converter saves a step.

WCAG color contrast requirements and the laws behind them

At Level AA, WCAG 2.2 asks for 4.5:1 on normal text. Large text, UI components and graphical objects get 3:1. Level AAA raises text to 7:1, or 4.5:1 for large text.

Required ratios by content type

Level Content type Minimum ratio Success criterion
AA Normal text 4.5:1 1.4.3 Contrast (Minimum)
AA Large text 3:1 1.4.3 Contrast (Minimum)
AA UI components, states, graphical objects 3:1 1.4.11 Non-text Contrast
AAA Normal text 7:1 1.4.6 Contrast (Enhanced)
AAA Large text 4.5:1 1.4.6 Contrast (Enhanced)

Large text means 18pt (about 24px) or larger, or 14pt bold (about 18.5px) or larger. Anything smaller counts as normal text.

These are hard thresholds. A result of 4.47:1 fails, and rounding it to 4.5 doesn’t change that. The AAA figure has its own rationale too, since 7:1 compensates for roughly 20/80 vision.

Laws and standards that cite WCAG contrast

Most legal requirements point to WCAG AA, not AAA.

In the United States, the Department of Justice rule under ADA Title II requires state and local government websites to meet WCAG 2.1 AA. An interim final rule published April 20, 2026 (91 FR 20902) moved the compliance dates to April 26, 2027 and April 26, 2028, depending on entity size. Plenty of articles still say April 2026, which is out of date.

Section 508 is older and simpler. Its 2017 Refresh requires federal agencies to meet WCAG 2.0 AA.

The European Accessibility Act, Directive (EU) 2019/882, applies from 28 June 2025 to products and services such as e-commerce and banking. Its technical reference is EN 301 549. The version currently cited for the Act, V3.2.1, incorporates WCAG 2.1 AA. V4.1.1, published on 2 September 2026, moves to WCAG 2.2 AA, and its citation is expected later in 2026.

Title II does not require AAA. Aim for AA everywhere and add AAA where you can, mainly for long-form reading.

Elements that must meet contrast and those that are exempt

Film poster where low-contrast type is decorative rather than functional

Nearly everything a visitor can see and needs to understand falls under the rules. That covers text, images of text, interactive controls and their states, and any graphic that carries meaning. A short list of things gets a pass.

Elements that need contrast

Text is the obvious case. The list runs longer than that.

  • Body copy, headings, captions and the placeholder text inside form fields
  • Images of text, which follow the same ratios as live text
  • Input borders, checkboxes, radio buttons and toggles, at 3:1 against adjacent colors
  • Hover, focus and active states, each tested on its own
  • Focus indicators, which need 3:1 under 1.4.11 and also fall under 2.4.7 Focus Visible and, in WCAG 2.2, 2.4.11 Focus Not Obscured
  • Chart slices, icons that carry meaning, lines in data visualizations

Text on a gradient, a photo or a semi-transparent layer has to pass too. Test the lowest-contrast area behind the text, not the average.

Thin strokes are a gray area. A 1px line can hit 3:1 on paper and still look faint on screen, so go above the minimum when the element carries meaning.

Exemptions and the Use of Color rule

Logotypes and brand wordmarks are exempt. So is incidental text, which means pure decoration, invisible text, and text inside a photo where other content dominates. Inactive components such as a disabled button get a pass, and so do default styles the browser sets and the author never changed.

Strictly, inactive components fall under the incidental exception in 1.4.3, and the browser-default exemption comes from 1.4.11 for UI components.

Brand guidelines are not an exemption. If your brand blue fails as body text on white, the logo can stay but the paragraph links cannot.

Contrast is not the same as Use of Color

Success criterion 1.4.1 (Level A) says color cannot be the only way to show information. It is a separate test from the ratio, and a design has to pass both.

Links inside text blocks show how the two rules stack. Against its background, a link needs 4.5:1. Without an underline it also needs 3:1 against the surrounding text, plus a visual cue on hover and focus. Take #0079AD on white with #2E2E2E body text. The link measures 4.8:1 against the page, so it passes. Against the body text it measures 2.8:1, so without an underline it fails (WebAIM).

How to check color contrast

Contrast checker returning a ratio for a foreground and background pair

Paste the two hex values into a contrast checker and read the ratio against the threshold for that content type. For a whole page, run an automated scan first and check the leftovers by hand.

Automated tools are quick but incomplete, so most audits use both.

Tool What it checks Best for
WebAIM Contrast Checker One color pair: normal text, large text, UI components Quick checks and shareable permalinks
Chrome DevTools color picker Computed color of a selected element Fixing a live page
Lighthouse and CSS Overview Contrast issues across a page First-pass audits
axe (Deque) All text elements against WCAG 2 AA Automated tests in a build pipeline

Check one pair

WebAIM’s Contrast Checker takes a foreground and a background hex value (or an eyedropper sample) and returns the ratio with pass or fail results for normal text, large text and UI components. It accepts an alpha value as well, so semi-transparent text gets tested properly.

Each result has a permalink that encodes the colors, which is handy in a ticket or a design review.

Check a live page

In Chrome DevTools, select an element and open the color picker. The contrast ratio section flags pairs that fail AA or AAA, and a “use suggested color” button applies a compliant one.

For a full page, the CSS Overview panel lists every contrast issue and links each to its element. Lighthouse reports the same kind of failures in its accessibility category.

Scanning automatically pays off because of volume. WebAIM’s 2026 report counted an average of 34 distinct low-contrast instances on each home page it tested, up 15% from 2025.

What automated scans miss

Scanners go blind in a few specific places.

  • Text over background images, which axe cannot resolve and only flags for manual review
  • Gradients and pseudo-element backgrounds, which are harder for the engine to resolve
  • Text hidden behind other elements, and images of text
  • Foreground transparency, which is harder to detect than background transparency

Those gaps are where manual checks earn their time. Sample the lightest and darkest points behind the text, run each through a checker, and keep the worst result.

Test states too. Hover, focus, active and error styles each need their own pass, and a green scan says nothing about them.

Fixing failing color pairs

Interface accent colour darkened until it passes contrast

Change the lightness and leave the hue alone. Darkening the text color (or lightening the background) raises the ratio, and the brand color stays recognizable.

Fix it in five steps

  1. Note the failing ratio and the threshold it has to reach.
  2. Decide which side moves. Text color is usually the easier change.
  3. Reduce lightness in small steps (a few percent each) with a tint and shade generator or your design tool.
  4. Recheck the ratio after each step and stop at the first value that clears the threshold.
  5. Save the new value as a design token so nobody reintroduces the old one.

If you work in HSL, a HSL to RGB converter gives you the channel values to check.

Example with brand orange on white

Orange #FF6600 on white measures 2.94:1. That fails the 4.5:1 minimum for normal text, and it falls short of 3:1 for large text too.

Drop its lightness from 50% to 39% and you get #C75000, which measures 4.59:1 on white. Still orange, now readable.

Common failures and their fixes

Light gray body text is the classic offender. #767676 is the lightest neutral that passes on white, and #595959 reaches 7.00:1, which clears AAA as well.

Text over photos needs a dark overlay behind it, or a move onto a solid panel. Test the lightest part of the image under the text afterward.

A light #CCCCCC input border measures 1.61:1 on white and fails the 3:1 rule for UI components. #949494 gets to 3.03:1.

Placeholder text counts as text, so it needs 4.5:1 like everything else. Plenty of default placeholder grays fail.

Disabled controls are exempt from the ratio. Keep them visibly distinct anyway, because users still need to recognize what they are.

Dark mode

Dark themes need their own check. A palette that passes in light mode can fail once the colors are inverted or desaturated.

Define separate tokens per theme and test each one. Pure white on pure black passes at 21:1, but many people find it harsh for long reading. A slightly softer pair that still clears 7:1 is often the better call.

When the WCAG 2 ratio is not enough

YouTube player

The WCAG 2 ratio measures luminance and nothing else. It ignores font size, font weight, and how the eye actually reads a given color pairing.

Passing it gets you the legal baseline. It doesn’t prove the text is comfortable to read.

Where the formula falls short

Thin fonts pass the ratio but render fainter. The W3C notes that anti-aliasing can make thin or unusual fonts look lighter than their defined color. Size is handled crudely as well, with two thresholds shared by all text even though legibility shifts gradually with size and weight.

Mid-tone backgrounds cause a different problem. They can score higher with black text even when white text looks better. Black on pure red measures 5.25:1, while white on the same red measures 4.00:1.

The W3C’s own advice is to pick a font with heavier strokes or a color pair that exceeds the required ratio. Choosing one of the fonts built for accessibility helps here.

APCA and WCAG 3

APCA, the Accessible Perceptual Contrast Algorithm, is the proposed replacement. It adjusts for font size and weight as well as polarity, and it is not part of any WCAG Recommendation.

The W3C published an updated WCAG 3 Working Draft on 10 September 2026. Its text contrast requirement has advanced to Developing status, but the threshold is still a placeholder, and the editor’s note says the algorithm for WCAG 3 is still to be determined.

APCA was dropped from the July 2023 draft after it failed to gain working group support, per Adrian Roselli’s April 2026 review of the draft. Whether any version returns is unknown.

What to do now

Audit against WCAG 2.2. For contrast, it covers everything the laws reference. The ADA rule cites WCAG 2.1, Section 508 cites 2.0, and EN 301 549 moves from 2.1 to 2.2 with V4.1.1. WCAG 3 is expected to be years away.

Then use judgment on top of it. Go above the minimum for thin type, small text, and anything people read at length. A tool like APCA can serve as a second opinion, but it cannot replace the WCAG 2 ratio in a compliance report.

Color Contrast FAQ

Is color contrast the same as brightness?

No. Brightness is how much light a screen emits overall, and users change it with a slider.

Color contrast compares two colors on the page, so raising brightness does not rescue a pair that sits below 4.5:1.

How does the WCAG contrast ratio differ from a monitor’s contrast ratio?

A monitor spec such as 1000:1 describes the panel, meaning the brightest white against the darkest black it can show. The WCAG ratio only cares about two specific colors in your design, and its scale tops out at 21:1.

A strong panel rating will not make a weak color pair readable.

Do contrast requirements apply to PDFs and mobile apps?

Printed layout where ink contrast decides legibility

Yes. Section 508 covers federal documents and software, and EN 301 549, the technical reference for the European Accessibility Act, extends WCAG criteria beyond websites to documents and applications.

The ratios stay the same across formats.

How often should contrast be tested?

Every time a color changes. Check pairs when the palette is defined, then run automated scans on each release.

Add a manual pass for hover and focus states and for anything over images or gradients, since scanners skip or under-report some of those.

Can a high-contrast mode replace fixing the default colors?

Partly. WCAG lists a control that switches to a presentation with sufficient contrast (technique G174) as one way to meet success criterion 1.4.3.

Most visitors see the default design though, so fix it first and treat the toggle as an extra.

Where to Start With Color Contrast Fixes

Contrast failures clear fastest when design tokens get tested before any page is built, since one corrected token carries into every component that uses it.

Text and background pairs go first, at 4.5:1. Text fails most often and fills the most screen area. Borders, icons and focus rings follow at 3:1. Hover states, gradients and text over images come last and get checked by hand, because scanners cannot verify them.

It does cost you some palette. Light brand tints stop working as text colors and move to backgrounds and decoration.

This sequence reflects WCAG 2.2, verified on 7 November 2026. It changes only if WCAG 3 settles on a new contrast algorithm, which the 10 September 2026 Working Draft still lists as undetermined.

Bogdan Sandu
Share
Written by Bogdan Sandu

Bogdan Sandu is a seasoned designer who has been designing websites since 2008. Renowned for his expertise in logo design and visual branding, Bogdan has developed a multitude of logos for various clients. His skills extend to creating posters, vector illustrations, business cards, and brochures. Additionally, Bogdan's UI kits were featured on marketplaces like Visual Hierarchy and UI8. He also wrote in the past years on sites like Design Your Way, WebDesignerDepot, WPDean, Designmodo, Speckyboy, Slider Revolution, and more.