{"uid":"cap_UbmTjnmJPb6iY7naDW8jG","slug":"color-toolkit-css-color-converter-9baddeed","name":"Color Toolkit – CSS Color Converter","description":"Parse any CSS color and return it as hex, rgb, hsl, hwb, lab, lch and oklch.","url":"https://color.openverbs.com/v1/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","required":["color"],"properties":{"color":{"type":"string","maxLength":128,"minLength":1,"description":"Any CSS color (e.g. \"#3498db\", \"rebeccapurple\", \"hsl(204 70% 53%)\")."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vaR8StEO6ZIhgxoXVJbbT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts any CSS color value (hex, named, HSL, etc.) into multiple color format representations","exampleAgentPrompt":"Can you convert the CSS color \"rebeccapurple\" to its hex and RGB equivalents for me?","exampleUseCases":[{"title":"Design token format normalization","prompt":"I have a color defined as hsl(204 70% 53%) in our design system — can you convert it to hex so I can use it in our Android app?"},{"title":"Named color to hex for email template","prompt":"What's the hex code for the CSS named color 'cornflowerblue'? I need to hardcode it in an HTML email."},{"title":"Hex to RGB for canvas drawing","prompt":"Convert #3498db to its RGB values so I can use them in a JavaScript canvas drawing call."}],"resultDescription":"The endpoint returns the input color expressed in multiple CSS color formats (such as hex, RGB, HSL, and named color if applicable), allowing the caller to use whichever representation suits their target environment.","failureModes":["Invalid or unrecognized color string returns an error response","Color string exceeds 128 characters returns a validation error","Missing required 'color' field in request body returns a 400-level error","Malformed JSON body returns a parse error"],"whenToPreferThis":"Choose this endpoint when you need programmatic, reliable conversion of CSS color strings across formats (hex, RGB, HSL, named) without building your own parser. It handles the full CSS color grammar including named colors, modern HSL syntax, and hex shorthand — ideal for design tooling, theming pipelines, or any agent workflow that needs to normalize colors before rendering or storing them.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:31:38.432Z","isFirstParty":false}