{"uid":"cap_Q4ufCx_Ihq5ILwfK0LXZU","slug":"color-blind-simulation-for-hex-colors-a1e09667","name":"Color Blind Simulation for Hex Colors","description":"Simulate protanopia, deuteranopia and tritanopia on a color, or on a text/background pair with the contrast that remains.","url":"https://color-design.x402tookit.com/color-blind-sim?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"],"type":"string"},"queryParams":{"type":"object","required":["color"],"properties":{"color":{"type":"string","description":"Hex color (or the foreground of a pair)"},"background":{"type":"string","description":"Optional background hex to check the pair's contrast"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"original":{"type":["null","string"]},"background":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"simulations":{"type":["null","object"],"properties":{"protanopia":{"type":["null","object"],"properties":{"color":{"type":["null","string"]},"contrast":{"type":["null","number"]},"background":{"type":["null","string"]}}},"tritanopia":{"type":["null","object"],"properties":{"color":{"type":["null","string"]},"contrast":{"type":["null","number"]},"background":{"type":["null","string"]}}},"deuteranopia":{"type":["null","object"],"properties":{"color":{"type":["null","string"]},"contrast":{"type":["null","number"]},"background":{"type":["null","string"]}}}}},"normalContrast":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oIzcxHVtEWcpKmEpCaqqw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Simulates protanopia, deuteranopia, and tritanopia color blindness on a hex color or a foreground/background pair, returning the transformed colors and remaining contrast ratios.","exampleAgentPrompt":"Simulate how color blind users would see my text color #E63946 on a white background #FFFFFF — show me the transformed hex values and contrast ratios for protanopia, deuteranopia, and tritanopia.","exampleUseCases":[{"title":"Brand color accessibility audit","prompt":"My brand's primary color is #0057B7. Can you show me what it looks like to users with protanopia, deuteranopia, and tritanopia? I need the simulated hex values and any contrast info."},{"title":"UI text legibility for color blind users","prompt":"I have dark gray text #333333 on a light background #F5F5F5. Simulate all three types of color blindness and tell me the contrast ratios that remain — I want to make sure it's still readable."},{"title":"Design system color pair validation","prompt":"Before I finalize my design system, check how the foreground color #D62828 on background #FEFAE0 holds up for colorblind users. Show me the simulated colors and whether contrast degrades significantly."}],"resultDescription":"Returns an object with the original color and background, simulated hex colors for protanopia, deuteranopia, and tritanopia, the contrast ratio for each simulation and for normal vision, a verdict or summary on accessibility, and any disclaimer or reasons if checks could not be completed.","failureModes":["Missing required 'color' query parameter returns an error","Invalid hex format (e.g. missing '#', wrong length) may cause a parsing error or unexpected results","Background parameter provided without '#' prefix may fail validation","Network or payment failure returns a 402 or 5xx error"],"whenToPreferThis":"Use this endpoint when you need to evaluate how a specific hex color or color pair appears under the three major types of color blindness (protanopia, deuteranopia, tritanopia) and want quantified contrast ratios — particularly useful for UI accessibility audits, brand color vetting, or WCAG compliance workflows. Prefer this over generic accessibility checkers when you need the simulated hex values themselves (not just a pass/fail), or when you need all three color blindness types evaluated in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:11:24.881Z","isFirstParty":false,"canonicalSlug":"color-blind-simulation-for-hex-colors-a1e09667"}