{"uid":"cap_xjmz_PQyBYpmLOBWWWUrn","slug":"swift-bot-labs-color-utility-44d43535","name":"Swift Bot Labs Color Utility","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.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":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["color"],"properties":{"color":{"type":"string"},"against":{"type":"string","description":"Optional second colour for a contrast check"}},"additionalProperties":false},"discoverable":{"type":"boolean"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"color","result":{"hex":"#1e90ff","hsl":{"h":209.6,"l":55.9,"s":100},"rgb":{"b":255,"g":144,"r":30},"contrast":{"AA":false,"AAA":false,"ratio":3.24,"AALarge":true}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pHJOSsc7SZIDzSpD0uzpg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a CSS/hex/named color string and returns its hex, RGB, and HSL representations plus optional WCAG contrast ratio against a second color.","exampleAgentPrompt":"What are the hex, RGB, and HSL values for 'dodger blue', and does it pass WCAG AA contrast against white?","exampleUseCases":[{"title":"Accessibility audit for brand palette","prompt":"Check if our brand blue #1e90ff passes WCAG AA and AAA contrast requirements against a white background — give me the contrast ratio and compliance status."},{"title":"Cross-format color conversion for designer","prompt":"I need the RGB and HSL breakdown for the CSS color 'tomato' — can you convert it for me?"},{"title":"Pick accessible text color for dark background","prompt":"Does white text on a #2d2d2d background pass WCAG AA accessibility for normal-sized text? What's the contrast ratio?"}],"resultDescription":"A JSON object with ok:true, the tool name, and a result containing the parsed color in hex, RGB (r/g/b integers 0-255), HSL (h/s/l floats), and optionally a contrast block with the ratio, AA, AAA, and AALarge boolean flags per WCAG 2.1 guidelines.","failureModes":["Unrecognized color string returns an error or ok:false","Missing required 'color' query parameter causes a 400-level error","Invalid second color in 'against' param fails contrast computation","Payment not provided or declined returns HTTP 402"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call, no-account color parsing and conversion utility — especially if you also need WCAG accessibility contrast checking in the same call. Prefer it over local libraries when running in a serverless or agent context without a color parsing dependency available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:37.989Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-color-utility-44d43535"}