Skip to content
Fourohtwo

WCAG contrast ratio calculator for two sRGB colors

saylorinnovations.com/api/accessibility/contrast

WCAG contrast ratio calculator for two sRGB colors - luminance, ratio and AA/AAA flags

SolanaAnswering
GEThttps://saylorinnovations.com/api/accessibility/contrast

Uptime100% of 2 checks in 30 days

30 days agoToday

Call it from an agent

curl -i "https://saylorinnovations.com/api/accessibility/contrast?background=255%2C255%2C255&foreground=0%2C0%2C0"

# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.

Example input

{
  "background": "255,255,255",
  "foreground": "0,0,0"
}