{"uid":"cap_KiyG1OFyIVPUFRb2bJ60D","slug":"api-x402node-dev-282392a4","name":"Hex to RGB Color Converter","description":"Hex to RGB converter, color converter, hex color parser, #FF0000 to rgb, 3-digit hex, 6-digit hex, web color decode. Convert hex color codes (#FF0000, FF0000, #F00) into RGB integer values and CSS rgb() string.","url":"https://api.x402node.dev/color/hex-to-rgb","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["hex"],"properties":{"hex":{"type":"string","description":"Hex color e.g. #3366cc (required)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"hex":"#FF5733"},"response":{"css":"rgb(255, 87, 51)","rgb":{"b":51,"g":87,"r":255},"meta":{"source":"x402node.dev"},"_hint":"x402 paid endpoints for AI agents — x402node.dev (utilities) · cn402.com (Chinese culture)","input":"#FF5733","timestamp":"2026-06-18T05:20:27.739Z"}},"exampleRequest":{"hex":"#FF5733"},"tags":["x402"],"displayCostAmount":"0.0022","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0022/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jnnSed_hc7_VSzSVs8sa9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0022","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts hex color codes (#FF0000, #F00, FF0000) into RGB integer values and a CSS rgb() string","exampleAgentPrompt":"Convert the hex color #1A9BF0 into its RGB values and give me the CSS rgb() string for it.","exampleUseCases":null,"resultDescription":"Returns an object containing the RGB integer values (r, g, b components 0-255) and a formatted CSS rgb() string derived from the input hex color code.","failureModes":["Invalid or malformed hex code returns an error (e.g. wrong length, non-hex characters)","Missing input hex value results in a 400-level error","Hex code without '#' prefix may or may not be accepted depending on parsing rules","Network or payment-related failures (x402 payment required) if USDC is not provided"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically convert a hex color code into its RGB integer components or a CSS rgb() string, especially in web design, UI automation, color analysis, or dynamic styling workflows where downstream systems expect RGB format rather than hex.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:53:52.387Z","isFirstParty":false}