{"uid":"cap_uhWZwxWjDtFUkRJ-XCxPr","slug":"saylor-innovations-wcag-color-contrast-checker-ff6e36f6","name":"Saylor Innovations WCAG Color Contrast Checker","description":"WCAG Color Contrast Checker — Design","url":"https://saylorinnovations.com/api/color/contrast?utm_source=zero.xyz","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","POST","PUT","PATCH","DELETE","HEAD"],"type":"string"},"queryParams":{"type":"object","properties":{"bg":{"type":"string","description":"background hex (query)"},"fg":{"type":"string","description":"foreground hex (query)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["contrast_ratio","wcag"],"properties":{"wcag":{"type":"object"},"contrast_ratio":{"type":"number"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PrDU1-VOGXItSOL9s2gti","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the WCAG 2.x contrast ratio between a foreground and background color, returning pass/fail results for AA and AAA levels across normal text, large text, and UI components.","exampleAgentPrompt":"Check if white text (#ffffff) on a navy background (#003366) passes WCAG AA and AAA contrast requirements for both normal and large text.","exampleUseCases":[{"title":"Design system accessibility audit","prompt":"I'm building a design system and need to check if my primary button — white text (#ffffff) on our brand blue (#1A56DB) — passes WCAG AA and AAA for normal text, large text, and UI components."},{"title":"Dark mode color validation","prompt":"Can you check the contrast ratio between my dark mode text color #E5E7EB and my background #111827 and tell me which WCAG levels it passes?"},{"title":"Client website accessibility check","prompt":"My client's site uses #757575 gray text on a white (#ffffff) background — does that combination pass WCAG 2.x AA for normal body text?"}],"resultDescription":"Returns a numeric contrast ratio (e.g. 4.5:1) and a WCAG compliance object with pass/fail verdicts for AA and AAA levels across normal text, large text, and UI component categories, per WCAG 2.x standards.","failureModes":["Missing or malformed hex codes (e.g. omitting the # or using invalid color values) may return an error or unexpected results","Providing color names instead of hex codes may not be supported","If both fg and bg params are omitted the API may return an error or default result"],"whenToPreferThis":"Use this endpoint when you need a lightweight, fast, pay-per-call WCAG 2.x contrast ratio check with explicit AA and AAA pass/fail verdicts for all text sizes and UI components — ideal for automated accessibility pipelines, CI checks, or design tool integrations without needing a full accessibility audit service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T12:48:09.671Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-wcag-color-contrast-checker-ff6e36f6"}