BounceLint

Why This Check Matters to a Paid Click

Ghost buttons, pastel brand palettes, white text over bright cyan or lime buttons, and semi-transparent hero buttons often look subtle on a calibrated studio display—and turn nearly illegible on a phone screen outdoors or on an uncalibrated office monitor.

When your primary call-to-action blends into the hero background, paid visitors miss the visual anchor of the page. Enforcing the WCAG 2.1 AA 4.5:1 luminance contrast ratio ensures your primary conversion action stands out clearly across devices and lighting conditions.

Exact Pass / Fail Threshold

Passes at >= 4.5:1 contrast ratio (WCAG 2.1 AA normal text). Below 4.5:1 → Medium fail.

Thresholds are deterministic constants in BounceLint's rule engine—zero language models run during checks.

Known Limits & Edge Cases

CSS background images or complex multi-stop gradients behind transparent buttons use the nearest resolved solid background color.

Spot an unexpected outcome on your page? Every check in every report includes a one-click “Wrong finding?” button reviewed against our 32-page golden set.

How BounceLint Measures It

  1. In headless Chromium, BounceLint resolves the computed CSS color of the primary CTA text and walks up the ancestor DOM stack to composite semi-transparent backgrounds against the underlying surface color.
  2. Relative luminance is calculated per the W3C WCAG 2.1 formula for both foreground text and resolved button background.
  3. Buttons measuring >= 4.5:1 contrast pass; buttons below 4.5:1 fail at Medium severity with the exact measured ratio reported.

False-Alarm Safeguards

  • Transparent or rgba() button backgrounds composite over ancestor container colors rather than falsely assuming a white or transparent backdrop.
  • Hover-only styles do not mask resting-state legibility; BounceLint measures the initial resting state every visitor sees on page load.
  • Buttons backed solely by complex photographic images fall back to the nearest resolved solid background color and note gradient/image limits.
Verified Golden-Set MeasurementG27 & BounceLint Self-Lint

Real Measured Example: Redacted cloud backup trial page vs. BounceLint homepage (Golden Case G27)

Scenario

Golden Case G27 renders a SaaS hero using light white text over a pale pastel button background. BounceLint’s own homepage uses #ffffff text on #1d4ed8 primary blue.

Measured Telemetry

G27 fails Medium with computed CTA contrast well below the 4.5:1 WCAG AA minimum; BounceLint’s own primary CTA passes at > 6.5:1 contrast.

Why It Matters

Darkening the button fill or switching light pastel buttons to dark ink immediately brings the CTA above 4.5:1 without redesigning the page.

Related Checks, Free Tools & Guides

Mobile CTA Above the Fold Check →

Measure whether a real conversion CTA button sits inside the first 390×844 mobile viewport or gets pushed below the fold by stacked hero copy.

Mobile CTA Obstruction Check →

Detect floating chat launchers, promo bars, and sticky overlays covering your primary mobile CTA button on a 390×844 screen via hit-testing.

Landing Page Form Field Check →

Count visible, enabled user-input fields in your hero lead form and flag high-friction forms that demand 5+ fields on cold paid clicks.

Try it live: Paid Landing Page Pre-Launch Checker · Landing Page Experience Below Average Guide · All 13 Checks · Message Match Checker

Full-Resolution Render