{"uid":"cap_YRIBbk1RS7jyMuvSxdEyP","slug":"brainiac-color-contrast-check-api-738fdb17","name":"BRAINIAC Color Contrast Check API","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/accessibility/color-contrast-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","pattern":"^https?:\\/\\/\\S+$","maxLength":2000,"minLength":8},"html":{"type":"string","maxLength":200000,"minLength":1}}},"responseSchema":{"type":"json","example":{"url":"","issues":[{"code":"contrast_below_threshold","kind":"confirmed","element":"p","explanation":"The contrast ratio is 1:1 from the colours on this element. It is below 3:1, the AA threshold used for large text.","remediation":"Change one of the colours so normal text reaches 4.5:1 and large text reaches 3:1."},{"code":"contrast_incomplete","kind":"manual","element":"p","explanation":"Only one of the foreground and background colours is written on this element. The other colour was not guessed.","remediation":"Set both color and background-color on the element, or check the pair in a browser."},{"code":"stylesheet_contrast_not_checked","kind":"manual","element":"document","explanation":"Stylesheet, inherited, and user-agent colours were not calculated.","remediation":"Check those pairs in a browser. A passing inline pair does not make the page conform."}],"source":"html","status":"checked","warnings":[],"checkedAt":"2026-11-02T19:00:00.000Z","limitations":["This is a static HTML check. It is not a WCAG conformance claim.","JavaScript is not run, so states that appear only after interaction are not seen.","Contrast is calculated only when both colours are written on the same element.","Checks marked manual need a browser or a person. They are not failures."],"wcagCompliance":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gDFBG6rxJEgpS5AEw3NOQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks HTML or a URL for WCAG color contrast accessibility issues, returning contrast ratios, failing elements, and compliance status.","exampleAgentPrompt":"Can you check my webpage at https://example.com for WCAG color contrast accessibility issues and tell me which elements fail and what their contrast ratios are?","exampleUseCases":[{"title":"Pre-launch accessibility audit","prompt":"Before we ship, can you run a color contrast check on https://staging.myapp.com and tell me which elements fail WCAG AA thresholds so we can fix them?"},{"title":"CI pipeline HTML validation","prompt":"Here's my component HTML — can you check it for color contrast problems and flag anything that doesn't meet the 4.5:1 normal text or 3:1 large text contrast requirements? <div style='color:#eee;background:#fff'>Hello World</div>"},{"title":"Accessibility remediation report","prompt":"My client's site at https://myclientsite.com needs to be WCAG compliant — can you identify all the color contrast issues and give me remediation steps for each failing element?"}],"resultDescription":"A JSON object containing: a list of contrast issues with element type, issue code (e.g. contrast_below_threshold, contrast_incomplete), kind (confirmed vs manual), explanation, and remediation advice; a wcagCompliance boolean; overall status; source (html or url); warnings; limitations of the static check; and a checkedAt timestamp.","failureModes":["URL is unreachable or returns a non-200 response — check will fail or return no results","HTML is empty or malformed — may produce incomplete results","Both url and html omitted — request is rejected","Contrast cannot be determined when colors are inherited or set via external stylesheets — flagged as manual checks","JavaScript-rendered content not analyzed — only static HTML is checked","Page uses CSS variables or computed styles — those pairs cannot be checked statically"],"whenToPreferThis":"Choose this endpoint when you need a fast, no-account, pay-per-call WCAG color contrast audit of a URL or raw HTML snippet. It is ideal for CI/CD pipelines, automated accessibility QA, or agent workflows that need machine-readable contrast issue lists with remediation guidance. It is not a full WCAG conformance scanner — prefer a browser-based tool or manual review for JavaScript-heavy pages or inherited stylesheet colors.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:37:00.599Z","isFirstParty":false,"canonicalSlug":"brainiac-color-contrast-check-api-738fdb17"}