Skip to content
Fourohtwo

Contrast ratios for up to 50 caller-supplied color pairs

a11y.aiagentpay.cloud/api/v1/check/contrast

Contrast ratios for up to 50 caller-supplied color pairs. No page is fetched. Each pair reports the WCAG 2.2 ratio, AA and AAA for normal and large text, the 3:1 non-text result, and a nearer foreground when AA is not met. Price 0.01 USD in USDC on Base, settled after a successful check.

BaseAnswering
POSThttps://a11y.aiagentpay.cloud/api/v1/check/contrast

Uptime100% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://a11y.aiagentpay.cloud/api/v1/check/contrast", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"fontSizePx":16,"pairs":[{"background":"#ffffff","foreground":"#767676"}]}),
});
console.log(await res.json());

Example input

{
  "fontSizePx": 16,
  "pairs": [
    {
      "background": "#ffffff",
      "foreground": "#767676"
    }
  ]
}