← Back to directory

WCAG contrast ratio between two colors — the check the URL-based a11y endpoint c...

https://api.webbersites.com/api/a11y/contrast

Overview

WCAG contrast ratio between two colors — the check the URL-based a11y endpoint can't do. Give a foreground and background color (hex or rgb()); returns the exact ratio and AA/AAA pass/fail for normal text, large text, and UI components, with a plain-English verdict. ?fg=&bg=

Protocol x402
Price $0.0010
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider WebberSites x402 Data API
Source bazaar
Indexed 2026-07-04 04:14:33

Health

Status healthy
Latency (p50) 498ms
Uptime (30d) 100.0%
Reliability Score 95/100
Last Checked 2026-10-31 07:13:16
Last Healthy 2026-10-31 07:13:16
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "bg": "#ffffff", "fg": "#767676" }, "type": "http" }

Output Schema

{ "example": { "background": "#ffffff", "contrast_ratio": 4.54, "foreground": "#767676", "passes": { "large_text": { "AA": true, "AAA": true }, "normal_text": { "AA": true, "AAA": false } }, "ratio_string": "4.54:1", "summary": "Good — passes AA for normal text and AAA for large text." }, "type": "json" }