Fix color-contrast in Webflow
Webflow marketing sites and CMS Collection templates frequently fail color-contrast on muted footer captions, ghost buttons over hero photography, and pale pastel pill badges. Updating the underlying Webflow Color Variable or global class immediately repairs every linked Component and Collection item upon publish.
Before and after
<!-- Broken Webflow exported HTML (.text-muted & .w-button) -->
<div class="pricing-card" style="background-color: #ffffff;">
<div class="card-meta" style="color: #94a3b8; font-size: 14px;">
Billed monthly · Cancel anytime
</div>
<a href="/signup" class="cta-btn w-button" style="background-color: #38bdf8; color: #ffffff;">
Start Free Trial
</a>
</div><!-- Fixed Webflow Style Variables (--ink-secondary: #475569, --brand-cta: #0369a1) -->
<div class="pricing-card" style="background-color: #ffffff;">
<div class="card-meta" style="color: var(--ink-secondary, #475569); font-size: 14px;">
Billed monthly · Cancel anytime
</div>
<a href="/signup" class="cta-btn w-button" style="background-color: var(--brand-cta, #0369a1); color: #ffffff;">
Start Free Trial
</a>
</div>Fixed vs. broken example
Inspect the foreground and background colors in Chrome DevTools Color Picker to verify the live WCAG AA (4.5:1 normal text, 3:1 large text) contrast badges.
Playwright + axe-core check
import { test, expect } from "@playwright/test";
import AxeBuilder from "@axe-core/playwright";
test("Webflow CMS collection and primary CTA meet WCAG 2.2 AA contrast", async ({ page }) => {
await page.goto("/case-studies/nordic-roasters");
const results = await new AxeBuilder({ page })
.withRules(["color-contrast"])
.analyze();
expect(results.violations).toEqual([]);
});Template deduplication tip
When a Webflow CMS Collection Card uses a low-contrast .card-meta class, every item in /blog/* or /case-studies/* inherits the violation. A11yDrift deduplicates those CMS pages back to one Webflow class fix.
Who this affects
Low-vision readers, older users with presbyopia, people with color-vision deficiencies, and anyone viewing a screen in bright sunlight struggle or fail to read muted gray captions, pale badges, and low-contrast CTA buttons.
NVDA & VoiceOver transcript
Screen readers announce the same copy for both versions; this rule primarily impacts low-vision readers, screen magnifiers, and visual legibility.
NVDA (Windows)
Screen readers still speak "Free shipping on orders over $75" and "Add to Cart, button", but screen magnifier and low-vision users cannot visually locate or read the faded copy and pale blue button.
Screen readers announce "Free shipping on orders over $75" and "Add to Cart, button", while sighted low-vision and ZoomText users clearly distinguish both the 7.58:1 body copy and 5.93:1 CTA.
VoiceOver (macOS / iOS)
VoiceOver speaks "Add to Cart, button", yet users combining VoiceOver with Zoom or macOS Increase Contrast experience severe glare washout on the 2.14:1 sky-blue fill.
VoiceOver speaks "Add to Cart, button", and the 5.93:1 darkened surface stays legible across macOS Zoom, mobile sunlight, and high-brightness displays.
Common questions
How do I fix contrast on Webflow hero sections with CMS background images?
Does Webflow's built-in Vision Preview replace axe-core contrast testing?
Should I update Webflow Variables or individual combo classes?
Test a URL for color-contrast
Enter any public URL for a free WCAG 2.2 AA check—no account or credit card required.
Managing Webflow client sites? Monitor 15 sites on one flat plan with white-label portals and branded executive PDFs—$1,140/yr ($95/mo billed annually, 24-month rate lock + onboarding) for Founding 10 agencies.