{"uid":"cap_Dqb2jVTRTWPS4zTJCUFnl","slug":"pennyrail-css-color-converter-90808968","name":"PennyRail CSS Color Converter","description":"Convert a CSS color between hex, RGB and HSL. Accepts #RRGGBB, rgb(r,g,b), hsl(h,s%,l%) or numeric RGB fields. Exact-match PennyRail gap-arbitrage route.","url":"https://pennyrail.vercel.app/api/bazaar/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","description":"Input for Color convert.","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"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.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_J3BD5XhYSCWFHl0DBq5l_","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 CSS color value between hex (#RRGGBB), RGB (rgb(r,g,b)), and HSL (hsl(h,s%,l%)) formats","exampleAgentPrompt":"Can you convert #FF5733 to both RGB and HSL for me?","exampleUseCases":[{"title":"Hex to RGB for canvas rendering","prompt":"I have the hex color #3A86FF and I need its RGB values so I can use it in a JavaScript canvas drawing — can you convert it?"},{"title":"HSL to hex for CSS stylesheet","prompt":"Convert hsl(210, 100%, 56%) to a hex code so I can drop it into my CSS file."},{"title":"RGB to HSL for design system audit","prompt":"What is the HSL equivalent of rgb(255, 99, 71)? I'm auditing our design tokens and need all colors in HSL."}],"resultDescription":"The endpoint returns the input color converted into all three CSS color representations: hex (#RRGGBB), RGB (rgb(r,g,b)), and HSL (hsl(h,s%,l%)), allowing the caller to use whichever format is needed.","failureModes":["Invalid or unrecognized color string format returns an error response","Out-of-range RGB values (e.g. negative or >255) cause a validation error","Missing or malformed request body results in a 400-level error","Malformed HSL percentages (e.g. missing % sign) may cause a parse failure","Payment not included or insufficient USDC balance causes a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need a simple, programmatic CSS color format conversion between hex, RGB, and HSL without setting up a local parsing library. It is ideal for agents operating in web design, CSS generation, or design-token pipelines where colors arrive in one format and are needed in another. At $0.001 per call, it suits low-volume on-demand conversions rather than batch processing thousands of colors locally.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:52:25.677Z","isFirstParty":false}