{"uid":"cap_rnsYwruELCYZCUr4mLmyC","slug":"color-conversion-api-b044104c","name":"Color Conversion API","description":"Color conversion for AI agents — give a color as hex, rgb(), hsl(), or a CSS name → every representation (hex, rgb, hsl) plus the matching/nearest CSS color name. Pay-per-call in USDC via x402 — no signup, no API key. Use for theming, design/UI generation, and normalizing colors.","url":"https://api-production-17e1.up.railway.app/color","method":"POST","headers":{},"bodySchema":null,"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":"down","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_SXOkVFh2iHDFRVM_pQgQ5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts any color input (hex, rgb, hsl, or CSS name) into all color representations plus the nearest matching CSS color name","exampleAgentPrompt":"Convert the color #3B82F6 and give me its hex, RGB, HSL values, and the closest CSS color name.","exampleUseCases":[{"title":"Generate accessible color palettes for UI themes","prompt":"I'm building a dark mode for our app. Take these brand colors—#FF6B35, #004E89, and #F7B801—and convert them all to RGB and HSL so I can create CSS variables. Also tell me what standard CSS color names are closest to each one."},{"title":"Normalize user-submitted color inputs","prompt":"Our design tool lets users paste colors in any format. Take these three inputs: 'rgb(147, 51, 234)', 'hsl(45, 93%, 58%)', and 'crimson'—convert them all to hex codes and give me the official CSS name for each one."},{"title":"Match design mockup colors to web standards","prompt":"I'm working from a Figma design that specifies colors in hex. Convert #A78BFA and #EC4899 into all color formats (hex, RGB, HSL) and find me the closest named CSS colors so developers can use the standard names in our stylesheets."}],"resultDescription":"Returns all color representations for the input color: hex code, rgb() string, hsl() string, and the matching or nearest CSS color name.","failureModes":["Invalid or unrecognized color input format returns an error","Malformed hex code (wrong length or characters) returns a parsing error","Empty input returns a validation error","Unsupported color format returns an error"],"whenToPreferThis":"Use this endpoint when you need to normalize a color from any format (hex, rgb, hsl, or CSS name) into all standard representations simultaneously, or when you need to find the closest named CSS color for a given color value — especially useful in design/UI generation workflows or theming pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-08-24T04:52:29.549Z","isFirstParty":false}