{"uid":"cap_1fW55A4-MweoR7sEO127b","slug":"coco-color-utility-hex-color-parser-accessibility-analyzer-169d63a0","name":"CoCo Color Utility – Hex Color Parser & Accessibility Analyzer","description":"Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.","url":"https://cocoeatsai.com/area4/agent/tools/color?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"]},"queryParams":{"type":"object","properties":{"value":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["hex"],"properties":{"hex":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"hex":"#1e90ff","hsl":[210,100,56],"rgb":[30,144,255],"best_text":"black","wcag_aa_on_black":true,"wcag_aa_on_white":false,"contrast_vs_black":6.49,"contrast_vs_white":3.24},"exampleNote":"Computed offline with demonstration inputs; time/random values are illustrative."},"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_3Ik9FyRD0cKpvHAFerPZi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a color value string into hex, RGB, and HSL representations with WCAG accessibility contrast scores","exampleAgentPrompt":"Can you check the color #1e90ff for me — give me its RGB and HSL values, and tell me whether it passes WCAG AA contrast on both white and black backgrounds?","exampleUseCases":[{"title":"Accessibility audit for brand color","prompt":"I'm using the color #FF6B35 as my primary brand color — does it pass WCAG AA contrast on a white background, and what text color should I put on top of it?"},{"title":"UI design color format conversion","prompt":"Convert the color 'dodgerblue' to its exact hex, RGB, and HSL values so I can use it consistently across my design system."},{"title":"Pick readable text color for dynamic background","prompt":"My app generates user profile cards with background color #4B0082 — should I use black or white text on top of it to keep it readable?"}],"resultDescription":"Returns a JSON object containing the hex code, RGB array [r,g,b], HSL array [h,s,l], the recommended best text color ('black' or 'white'), boolean WCAG AA pass/fail flags for both black and white backgrounds, and the numerical contrast ratios against both black and white.","failureModes":["Unrecognized or malformed color string returns an error or unexpected hex output","Missing 'value' query parameter may result in a default or error response","Non-standard color names not in the parser's dictionary may fail to resolve","Edge case colors near the contrast threshold may have borderline WCAG results"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap color utility that simultaneously handles format conversion (name/hex to hex/RGB/HSL) AND accessibility scoring (WCAG AA contrast ratios) in a single call. Ideal for UI agents, design automation, or accessibility checkers that need to validate color choices without running a heavier color library locally.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:44:05.420Z","isFirstParty":false,"canonicalSlug":"coco-color-utility-hex-color-parser-accessibility-analyzer-169d63a0"}