Skip to main content
DrupalMaze
Free quote

How we fixed 41 failing contrast pairs to reach WCAG AAA

Finding every failure first

AAA contrast — 7:1 for normal text, 4.5:1 for large — sounds like a color-picking exercise until you count the surfaces. We enumerated every foreground/background pair the theme could produce: body text on sections, muted text on cards, links on tinted bands, button text on accents, reversed text on images. The count that mattered was not pages failing but color pairs failing: forty-one.

Why page-by-page fixes lose

Patching each failing spot is whack-a-mole — fix the card, break the footer. The durable move is treating the palette as a constraint problem: darken the muted token, shift the accent ramp one step, add an on-accent token for text sitting on brand colors. We rebuilt the palette around pairs rather than swatches: every token that could be text got a declared, tested partner.

What actually changed

Muted grays moved from #757575 territory to near-black. The rust accent kept its identity but gained a mandatory --on-accent (white, verified 7.2:1). Decorative duotone images got a text-protection scrim instead of relying on image luck. Dark mode got its own pair table — not an inverted palette, a separately tested one.

Verifying, not assuming

Each pair got a recorded ratio, then a browser pass on real pages — computed styles, not design-tool guesses, because alpha channels and font weights change the math. The final AAA readout: zero failing pairs, including states like hover, focus, disabled, and the "almost invisible" helper text everyone forgets.

The transferable lesson

AA vs AAA is rarely a brand problem; it is a token-architecture problem. Declare pairs, not colors, and AAA becomes a palette decision rather than a site-wide remediation. It is the same discipline behind our accessible design work — and it survives the next rebrand because the constraint is in the system, not in forty-one tickets.

Bring us your beautifully complicated problem.

↗