{"uid":"cap_cZ6F1I-j7mduRDyUH2X8y","slug":"moneytools-color-converter-wcag-contrast-checker-aaa84f97","name":"MoneyTools Color Converter + WCAG Contrast Checker","description":"Color converter + WCAG contrast: Convert hex/rgb/hsl/CSS names to hex, RGB, HSL, CMYK; luminance, best text color and WCAG AA/AAA contrast against another color. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.","url":"https://tools.moneytools.dev/v1/color?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":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":["color"],"properties":{"color":{"type":"string","examples":["#1a73e8"],"description":"color"},"against":{"type":"string","examples":["#ffffff"],"description":"second color"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","properties":{"payment":{"type":"object","properties":{"charged":{"type":"boolean"},"network":{"type":"string"},"amountUsd":{"type":"string"},"transaction":{"type":["string","null"]}}},"freeTier":{"type":"object"},"_moneytools":{"type":"object","description":"optional plan / partner hints"}},"description":"Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.","additionalProperties":true}}}}},"responseSchema":{"type":"json"},"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_qdg9SyK0iXY_3P3M3CoDp","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 (hex/RGB/HSL/CSS name) to all major color formats and computes luminance, best readable text color, and WCAG AA/AAA contrast ratio against a second color.","exampleAgentPrompt":"Can you convert #1a73e8 to RGB, HSL, and CMYK, and check whether it passes WCAG AA and AAA contrast standards against white (#ffffff)?","exampleUseCases":[{"title":"Accessibility audit for brand colors","prompt":"Does our primary brand color #2d6a4f pass WCAG AA contrast when used as text on a white background? Also give me the full RGB and HSL values."},{"title":"Design token format conversion","prompt":"I have a color defined as rgb(26, 115, 232) — can you convert it to hex, HSL, and CMYK so I can add it to our design system?"},{"title":"Pick readable text color for a background","prompt":"My card background is #1e1e2e — what's the best text color to use on it, and what contrast ratio would that give me?"}],"resultDescription":"A JSON object containing the input color expressed in hex, RGB, HSL, and CMYK formats; its relative luminance; the recommended best-contrast text color (black or white); and WCAG AA and AAA pass/fail results plus numeric contrast ratio against the optional second color. Also includes payment metadata indicating whether a charge was applied, the network, and the transaction reference.","failureModes":["Invalid or unrecognized color string returns an error — unparseable inputs like malformed hex or unknown CSS names","Missing required 'color' query parameter returns a validation error","Free tier exhausted (10 calls/day) without payment method triggers HTTP 402 requiring x402 micropayment or API key","Network or service downtime returns 5xx; no charge on failure"],"whenToPreferThis":"Choose this endpoint when you need color format conversion (hex↔RGB↔HSL↔CMYK) combined with WCAG accessibility analysis in a single call, especially in automated design pipelines, accessibility audits, or agent workflows that need to validate UI color choices. It's particularly useful when you need luminance and best-text-color recommendations without running a full design tool. The x402 micropayment model makes it viable for low-volume or one-off agent calls without subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-05T12:43:30.650Z","isFirstParty":false,"canonicalSlug":"moneytools-color-converter-wcag-contrast-checker-aaa84f97"}