{"uid":"cap_VI03qDUVibcY_pk-5ahu1","slug":"x402-forgemesh-io-color-format-converter-f4524725","name":"x402.forgemesh.io Color Format Converter","description":"Color format converter for hex codes and rgb() values: get back hex, RGB, and HSL representations plus a light-or-dark classification and the ideal black-or-white text color for readability on top of it. Handy for UI theming, chart palettes, and dashboard generators that need instant, exact color math without guessing at contrast ratios.","url":"https://x402.forgemesh.io/color-format-converter","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"color":{"type":"string","description":"#RRGGBB or rgb(r,g,b)"}}},"responseSchema":{"type":"json","example":{"hex":"#5eead4","hsl":{"h":171,"l":64,"s":77},"rgb":{"b":212,"g":234,"r":94},"is_dark":false,"contrast_text":"#000000"}},"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_vIJIruvcjjfXm1VRskk24","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 hex or RGB color value into hex, RGB, and HSL representations, plus a light/dark classification and the optimal black-or-white text color for contrast.","exampleAgentPrompt":"What are the hex, RGB, and HSL values for #3a7bd5, and should I use black or white text on top of it for readability?","exampleUseCases":[{"title":"Dashboard theme text contrast","prompt":"I'm building a dashboard with a #1e3a5f background — can you tell me if that's a light or dark color and whether I should overlay black or white text on it?"},{"title":"Chart palette format normalization","prompt":"I have these chart colors in hex: #e74c3c, #2ecc71, #3498db — can you convert each one to RGB and HSL so I can use them consistently across my design system?"},{"title":"UI theming from brand color","prompt":"Our brand color is rgb(58, 123, 213). What's the hex code, the HSL breakdown, and what text color — black or white — gives the best readability on top of it?"}],"resultDescription":"Returns the input color expressed as a hex string, an RGB object with r/g/b integer components, an HSL object with hue/saturation/lightness values, a 'light' or 'dark' classification of the color, and a recommended text color of either black or white for maximum readability contrast against that background.","failureModes":["Invalid color string (not a valid #RRGGBB or rgb(r,g,b) format) returns a 400 or error response","Missing color field in request body results in validation error","Out-of-range RGB component values (e.g. rgb(300,0,0)) may cause parsing failure","Short hex codes like #fff may not be accepted if only 6-digit format is supported"],"whenToPreferThis":"Use this endpoint when you need instant, exact color math for a single color value — specifically when you need multiple format representations (hex, RGB, HSL) together with a light/dark classification and a contrast-safe text color recommendation. It is ideal for UI theming pipelines, dashboard generators, and design-token workflows where you need all color metadata in one call without implementing color math yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:01:46.170Z","isFirstParty":false}