{"uid":"cap_zMQv0E0cVtzIizleY1JPM","slug":"api-x402node-dev-071f8df7","name":"WCAG Color Contrast Ratio Calculator","description":"WCAG contrast ratio calculator, accessibility checker, color contrast, a11y, WCAG 2.1 AA AAA, text contrast, color blindness, readable text color. Calculate WCAG 2.1 contrast ratio between two colors and return pass/fail for AA/AAA at normal/large text sizes. Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/color/contrast","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["fg"],"properties":{"bg":{"type":"string","description":"Background color (optional)"},"fg":{"type":"string","description":"Foreground color (required)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eLBsgQxBSnUjnjfMrRX6v","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the WCAG 2.1 contrast ratio between two colors and returns pass/fail results for AA and AAA compliance at normal and large text sizes.","exampleAgentPrompt":"Check if #1a1a1a text on a #ffffff background passes WCAG 2.1 AA and AAA accessibility standards for both normal and large text, and tell me the contrast ratio.","exampleUseCases":null,"resultDescription":"Returns the calculated contrast ratio (a number like 4.5:1) along with pass/fail status for WCAG AA and AAA compliance at both normal text and large text thresholds.","failureModes":["Invalid color format provided — returns error if hex codes or color values are malformed","Missing required foreground or background color parameters","Unsupported color format outside expected input schema"],"whenToPreferThis":"Use this endpoint when you need a programmatic, standards-compliant WCAG 2.1 contrast ratio calculation with explicit AA/AAA pass/fail results for both normal and large text, especially in design review, accessibility auditing, or automated UI testing workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:49:16.366Z","isFirstParty":false}