color-contrast: Text and foreground elements must meet WCAG AA contrast
Normal body text requires at least 4.5:1 contrast against its background; large text (24px+ or 18.66px+ bold) requires at least 3:1.
Why this matters for EAA & ADA compliance
Low-contrast gray buttons, sale badges, and muted checkout labels are unreadable for users with low vision or color-vision deficiency and fail automated EAA screening.
Mapped standards: 1.4.3 Contrast (Minimum) (Level AA) • EN 301 549 § 9.1.4.3
Standard HTML Fix
<button style="background:#38bdf8;color:#ffffff">Add to cart</button>
<button style="background:#0369a1;color:#ffffff">Add to cart</button>
Shopify Liquid Fix
.btn-primary { background: {{ settings.accent_color }}; color: #fff; } /* 2.4:1 */
.btn-primary { background: #0f4c81; color: #ffffff; } /* 8.7:1 WCAG AAA */
React / Next.js Fix
<span className="text-slate-400 bg-white">Out of stock</span>
<span className="text-slate-700 bg-white">Out of stock</span>