{"uid":"cap_xjCQ4v4nNwrYfmwcrb4Bb","slug":"centralcity-ai-color-converter-d70a13e9","name":"centralcity.ai Color Converter","description":"Converts a color between hex, RGB and HSL.","url":"https://centralcity.ai/api/public/x402/off_xhvyzr7an6xhrmux?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"color":{"type":"string","description":"A color as #rrggbb, #rgb, rgb(r, g, b) or hsl(h, s%, l%)."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LoiUj5FtJC4IbaTUUq8Yc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","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 between hex (#rrggbb), RGB, and HSL formats","exampleAgentPrompt":"Can you convert #ff5733 to its RGB and HSL equivalents for me?","exampleUseCases":[{"title":"CSS design token conversion","prompt":"I'm building a design system and need to convert my brand color #3a86ff into both RGB and HSL formats so I can use them in CSS variables."},{"title":"HSL to hex for image export","prompt":"I've got a color defined as hsl(210, 100%, 56%) — what's the hex code and RGB value for that?"},{"title":"RGB to hex for developer handoff","prompt":"My designer gave me rgb(58, 134, 255) for a button color — can you convert that to a hex code and also the HSL value?"}],"resultDescription":"Returns the input color expressed in all three formats: hex (#rrggbb), RGB (rgb(r, g, b)), and HSL (hsl(h, s%, l%)), allowing the caller to use whichever representation is needed.","failureModes":["Invalid or unrecognized color string returns an error","Malformed hex codes (wrong length, invalid characters) are rejected","Out-of-range RGB values (e.g. rgb(300, 0, 0)) may cause an error","Missing 'color' field in the request body results in a validation error"],"whenToPreferThis":"Use this endpoint when you need to programmatically convert a color between hex, RGB, and HSL representations — especially in design automation, CSS generation, or any workflow where a color arrives in one format but must be used in another. It handles all common CSS color string formats in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:40:32.142Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-color-converter-77fdc87c"}