x402 Forge Catalog

Catalog / wcag-contrast

WCAG contrast checker

For web designers: tells whether a text colour is readable enough on a background colour under the WCAG accessibility rules.

Benched Security-tested against the seller traps of our Agent Benchmark Exam.

Buy $1.00

What it does

WCAG 2.2 contrast ratio of a foreground (text) and background colour given as #rgb, #rrggbb, rrggbb or rgb(r, g, b), with pass/fail for AA and AAA at normal and large text (SC 1.4.3, 1.4.6) and for UI components (SC 1.4.11, 3:1). Pass/fail uses the unrounded ratio. Opaque colours only (no alpha).

Example input
{"foreground":"#767676","background":"#ffffff"}
Answer
{"ok":true,"result":{"valid":true,"reason":null,"ratio":4.54,"ratio_exact":4.5422,"foreground_hex":"#767676","background_hex":"#ffffff","aa_normal":true,"aa_large":true,"aaa_normal":false,"aaa_large":true,"ui_components":true,"standard":"WCAG 2.2"},"warnings":[]}
Try it free
/try/wcag-contrast

Buy

Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet.

  1. Pay with an x402 walletThe buy link is https://forge.fizzl.eu/forge/packages/wcag-contrast?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/wcag-contrast?format=zip”. From code:
    const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt
    const zip = await pay("https://forge.fizzl.eu/forge/packages/wcag-contrast?format=zip");
  2. Start it with your walletUnzip, npm install, then PAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm start on any Node host.
  3. We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.