{"uid":"cap_6GbJDsQ4om6zjb1kVOXgw","slug":"agent402-tools-color-converter-5dd0f6c5","name":"agent402.tools Color Converter","description":"Convert a color between hex, RGB, and HSL. Accepts \"#1a2b3c\", \"rgb(26,43,60)\", or \"hsl(210,40%,17%)\".","url":"https://agent402.tools/api/color","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"color":{"type":"string","description":"Color in hex, rgb(), or hsl() form"}}},"responseSchema":{"type":"json","example":{"hex":"#4ade80","hsl":[142,69,58],"rgb":[74,222,128],"luminance":0.58}},"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_wWY9_4f46ZdsS22aYavA9","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 color value between hex, RGB, and HSL color formats","exampleAgentPrompt":"Can you convert the hex color #1a2b3c into its RGB and HSL equivalents for me?","exampleUseCases":null,"resultDescription":"The converted color value(s) in the requested or all alternative formats — e.g. given a hex input, returns the equivalent RGB and HSL representations as structured data.","failureModes":["Invalid color string format returns an error (e.g. passing a plain color name like 'red' instead of hex/rgb/hsl syntax)","Malformed hex string (wrong number of digits) results in a parse error","Missing 'color' field in request body returns a validation error","Out-of-range RGB values (e.g. rgb(300,0,0)) may return an error or clamped result"],"whenToPreferThis":"Use this endpoint when you need to programmatically convert a color between hex, RGB, and HSL formats — for example, when a design system requires HSL but you only have a hex code, or when normalizing color inputs from different sources. Prefer this over manual calculation or general-purpose code execution when you need a fast, reliable, single-call conversion.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:06.459Z","isFirstParty":false}