← Back to directory

Adjust a text color's lightness just enough to reach a WCAG contrast target (4.5...

https://color-design.x402tookit.com/contrast-fix

Overview

Adjust a text color's lightness just enough to reach a WCAG contrast target (4.5, 3 or 7) on a background, keeping its hue.

Protocol x402
Price $0.02
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider Color and Design Tools
Source bazaar
Indexed 2026-10-20 21:22:49

Health

Status healthy
Latency (p50) 549ms
Uptime (30d) 86.7%
Reliability Score 83.3/100
Last Checked 2026-10-28 06:39:22
Last Healthy 2026-10-28 06:39:22
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "background": "ffffff", "foreground": "ffcc00", "target": 4.5 }, "type": "http" }

Output Schema

{ "example": { "asOf": "2026-10-11T04:02:41.011Z", "background": "#ffffff", "contrastAfter": 4.59, "contrastBefore": 1.512, "degraded": false, "disclaimer": "Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting.", "fixed": "#8f7200", "lightnessShift": 22, "notChecked": [ "brand guidelines", "non-text contrast", "…1 more" ], "original": "#ffcc00", "reasons": [ "Same hue and saturation; only lightness changes, in the direction that increases contrast." ], "source": "computed locally", "summary": "Use #8f7200 instead of #ffcc00: contrast 1.51:1 becomes 4.59:1 (target 4.5:1), lightness moved 22 points.", "target": 4.5, "verdict": "FIXED" }, "type": "json" }