{"uid":"cap_x8AeeoPVX7zsroF5B9guu","slug":"relaystation-color-convert-b1c1a2e4","name":"Relaystation Color Convert","description":"$0.0002/call. Convert colors between hex, RGB, and HSL — exact values back as JSON. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/codes/color-convert","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"to":{"enum":["hex","rgb","hsl"],"type":"string"},"color":{"type":"string","minLength":1,"description":"Any recognized hex/rgb()/hsl() form (incl. alpha)."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"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":"registry","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_cgUJbf88mXqYZ-PmDV-2W","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts color values between hex, RGB, and HSL formats, returning exact converted values as JSON","exampleAgentPrompt":"Convert the hex color #3A86FF to both RGB and HSL and give me the exact values.","exampleUseCases":[{"title":"CSS design system color normalization","prompt":"I have a brand color defined as hex #FF6B6B — can you convert it to both RGB and HSL so I can use it across our CSS variables?"},{"title":"Designer handoff color translation","prompt":"My designer gave me the color rgb(72, 199, 142) and I need the hex code and HSL values for it to put in our Tailwind config."},{"title":"Theme builder palette conversion","prompt":"Convert hsl(210, 100%, 56%) to its hex and RGB equivalents so I can plug the values into our theming tool."}],"resultDescription":"A JSON object containing the color represented in all three formats: hex (e.g. '#3A86FF'), RGB (e.g. {r: 58, g: 134, b: 255}), and HSL (e.g. {h: 217, s: 100, l: 61}), regardless of which format was provided as input.","failureModes":["Invalid color value format returns an error response","Out-of-range RGB values (e.g. 256) may cause validation failure","Malformed hex string (wrong length or non-hex characters) returns parsing error","Missing required input fields result in a 400-level error","Payment failure or insufficient credits returns a payment-required error"],"whenToPreferThis":"Choose this endpoint when you need fast, exact, programmatic color format conversion between hex, RGB, and HSL with structured JSON output. Ideal for design automation pipelines, CSS preprocessing, theming tools, or any agent workflow that needs to normalize color representations at very low cost ($0.0002/call). Prefer this over extracting dominant colors from images (a separate endpoint) or any visual analysis task.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:52:33.571Z","isFirstParty":false}