{"uid":"cap_6YgpDt7QrkQAzh5irdpwn","slug":"keyronne-color-parser-wcag-contrast-checker-97f948b5","name":"Keyronne Color Parser & WCAG Contrast Checker","description":"Parse any CSS color (hex, rgb(), hsl()) and emit all three formats plus relative luminance. Compute WCAG contrast ratios against a background with AA/AAA pass-fail for normal and large text, and lighten, darken, or mix colors. Built for agents generating accessible UI themes. POST a JSON body like: {\"color\":\"#3498db\",\"background\":\"#ffffff\"}","url":"https://keyronne.com/api/color?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mix":{"type":"string","description":"Blend the color toward this one."},"color":{"type":"string","description":"A color: \"#3498db\", \"rgb(52,152,219)\", or \"hsl(204,70%,53%)\"."},"darken":{"type":"number","description":"Decrease lightness by this many percent (0-100)."},"weight":{"type":"number","default":0.5,"maximum":1,"minimum":0,"description":"Mix weight toward \"mix\"."},"lighten":{"type":"number","description":"Increase lightness by this many percent (0-100)."},"background":{"type":"string","description":"Optional second color for a WCAG contrast check."}}},"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":{"p10Cents":"0.1000","medianCents":"0.1000","p90Cents":"0.1000","minCents":"0.1000","maxCents":"0.1000","p95Cents":"0.1000","sampleCount":1,"varies":false,"failureChargeRate":1},"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_ZciwYjVm6AJJcgQfCuuro","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":"Parses any CSS color format (hex, rgb, hsl), converts between all three, computes relative luminance, checks WCAG AA/AAA contrast ratios against a background, and supports lighten, darken, and color mixing.","exampleAgentPrompt":"Check if the text color #3498db on a white background passes WCAG AA and AAA contrast requirements, and also give me the rgb and hsl equivalents of that color.","exampleUseCases":null,"resultDescription":"Returns the parsed color in all three CSS formats (hex, rgb, hsl) plus its relative luminance. If a background color is provided, returns the WCAG contrast ratio and AA/AAA pass-fail results for both normal and large text. If lighten, darken, or mix operations are requested, returns the resulting transformed color(s) in all formats.","failureModes":["Invalid or unparseable color string — returns 400 with error message","Mix color provided without a valid mix weight — may default to 0.5 or return validation error","Lighten/darken values outside 0-100 range — returns validation error","Missing required color field — returns 400 bad request","Background color provided in an unsupported or malformed format — returns parsing error"],"whenToPreferThis":"Use this endpoint when building accessible UI themes, checking color contrast compliance with WCAG 2.x, converting between CSS color formats, or programmatically adjusting colors for design systems. Prefer this over general-purpose color libraries when you need WCAG AA/AAA pass-fail verdicts and multi-format conversion in a single API call without running local code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:45:23.997Z","isFirstParty":false,"canonicalSlug":"keyronne-color-parser-wcag-contrast-checker-97f948b5"}