{"uid":"cap_Sqc82OqrnQrlALkcGyrF-","slug":"color-converter-with-wcag-contrast-accessibility-metrics-93126fc8","name":"Color Converter with WCAG Contrast & Accessibility Metrics","description":"Colour converter: hex, RGB, HSL, CMYK and the nearest CSS colour name, plus WCAG contrast ratios against white and black, luminance, and a complementary colour. Design and accessibility helper. $0.01 per colour.","url":"https://intel.rallylive.ca/data/color","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sPcCWzMDUMmA8Csw3Ju6X","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a color (hex, RGB, HSL, or CMYK) into all equivalent formats, finds the nearest CSS color name, and returns WCAG contrast ratios against white and black, luminance, and a complementary color.","exampleAgentPrompt":"Can you convert #3a7bd5 into all color formats — RGB, HSL, and CMYK — and also tell me the nearest CSS color name, its luminance, the complementary color, and whether it's accessible on white or black backgrounds according to WCAG?","exampleUseCases":[{"title":"WCAG accessibility check for brand color","prompt":"My brand primary color is #E63946 — can you check if it passes WCAG contrast requirements against both white and black backgrounds, and tell me its luminance?"},{"title":"Design token format conversion","prompt":"I need to convert rgb(58, 123, 213) into hex, HSL, and CMYK so I can add it to our design system — can you get all those values plus the nearest CSS color name?"},{"title":"Find complementary color for palette","prompt":"What's the complementary color to #2D6A4F, and can you give me all its equivalent formats in hex, RGB, HSL, and CMYK too?"}],"resultDescription":"Returns the input color expressed in all major formats (hex, RGB, HSL, CMYK), the nearest standard CSS named color, WCAG contrast ratios against both white and black backgrounds, the relative luminance value, and the complementary color — all in a single response.","failureModes":["Invalid or malformed color value provided (e.g. out-of-range RGB components) returns an error","Unsupported color format not recognized by the API","Network timeout or service unavailability","Missing required input parameter returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need a one-shot conversion of a color across all major formats (hex, RGB, HSL, CMYK) combined with WCAG accessibility contrast ratios and a complementary color — ideal for design automation, accessibility audits, and building design systems. It provides more combined output per call than piecemeal color libraries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:12:28.336Z","isFirstParty":false}