{"uid":"cap_ZMYMPGa1qax_d735vE6nw","slug":"agent402-tools-color-converter-b685752f","name":"agent402.tools Color Converter","description":"Convert a color between every common notation (hex, rgb, hsl, oklch) at once, plus return the nearest CSS named color. Accepts input as hex (#fff or #ffffff), rgb()/rgba(), hsl()/hsla(), oklch(), or any of the 148 CSS named colors. Use this when a...","url":"https://agent402.tools/api/color-convert","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"color":{"type":"string","description":"Color in any supported notation: hex, rgb(), hsl(), oklch(), or a CSS named color."}}},"responseSchema":{"type":"json","example":{"hex":"#1d4ed8","hsl":{"h":224.04,"l":48.04,"s":76.42},"rgb":{"b":216,"g":78,"r":29},"input":"#1d4ed8","oklch":{"C":0.217,"H":264.39,"L":0.488},"hslString":"hsl(224.04, 76.42%, 48.04%)","rgbString":"rgb(29, 78, 216)","oklchString":"oklch(0.488 0.217 264.39)","nearestNamed":{"name":"royalblue","distance":51}}},"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_r4pcp0EC-Ecx579tQL-Af","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 from any common notation (hex, RGB, HSL, OKLCH, or CSS named color) into all common formats simultaneously, including the nearest CSS named color.","exampleAgentPrompt":"Convert the color #3a7bd5 into every common format — hex, RGB, HSL, and OKLCH — and also tell me the nearest CSS named color.","exampleUseCases":null,"resultDescription":"Returns the input color expressed in all major color notations: hex, rgb(), hsl(), and oklch(), plus the name and value of the nearest CSS named color from the 148 standard named colors.","failureModes":["Invalid or unrecognized color string returns an error (e.g. malformed hex, unknown named color)","Missing 'color' field in request body returns a validation error","Ambiguous input that doesn't match any supported notation may be rejected"],"whenToPreferThis":"Use this endpoint when you need to convert a color between multiple representations all at once, especially when you also need the nearest CSS named color. Ideal for frontend/design workflows where a single color needs to be expressed in hex, RGB, HSL, and OKLCH simultaneously without making multiple separate conversion calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:02:30.081Z","isFirstParty":false}