← Back to directory

Best text color (black or white) for a background hex color, with contrast ratio...

https://color-design.x402tookit.com/accessible-text-color

Overview

Best text color (black or white) for a background hex color, with contrast ratios and WCAG AA/AAA results for both.

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) 589ms
Uptime (30d) 93.8%
Reliability Score 86.9/100
Last Checked 2026-10-28 06:44:39
Last Healthy 2026-10-28 06:44:39
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "background": "f4d03f" }, "type": "http" }

Output Schema

{ "example": { "asOf": "2026-10-11T04:02:39.704Z", "background": "#f4d03f", "best": "#000000", "black": { "AA": true, "AAA": true, "AALarge": true, "ratio": 13.94 }, "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.", "notChecked": [ "non-text elements", "a brand color that must stay as is (use /contrast-fix to adjust a text color instead)" ], "reasons": [ "WCAG 2.x contrast: 4.5:1 for normal text (AA), 7:1 for AAA, 3:1 for large text." ], "source": "computed locally", "summary": "On #f4d03f use black text (13.94:1).", "verdict": "AAA_AVAILABLE", "white": { "AA": false, "AAA": false, "AALarge": false, "ratio": 1.51 } }, "type": "json" }