{"uid":"cap_9c1oBG8hnbW53aUheHcGK","slug":"delx-commerce-hex-to-rgb-color-converter-935bef45","name":"Delx Commerce — Hex to RGB Color Converter","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/hex-to-rgb?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"hex":{"type":"string","description":"Input field: hex."}}},"responseSchema":{"type":"json","example":{"b":0,"g":0,"r":255,"valid":true,"schema":"delx/util-hex-to-rgb/v1"}},"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_P4D3ejwKCoL487a-ZuB8k","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 CSS/HTML hex color code into its red, green, and blue (RGB) integer components","exampleAgentPrompt":"Convert the hex color #FF5733 to its RGB values for me.","exampleUseCases":[{"title":"CSS color migration to RGB","prompt":"I need to convert my brand color #1A73E8 to its RGB equivalent so I can use it in a CSS rgb() function — what are the red, green, and blue values?"},{"title":"Design tool color breakdown","prompt":"Can you parse #3CB371 into its individual RGB numbers? I'm building a palette tool and need the exact red, green, and blue integers."},{"title":"Validate and decode user-submitted hex","prompt":"A user entered '#GGZZ11' as a color — can you try to convert it to RGB and tell me if it's a valid hex code?"}],"resultDescription":"A JSON object containing the integer values for red (r), green (g), and blue (b) channels (each 0–255), a boolean `valid` flag indicating whether the input was a parseable hex color, and a schema identifier string (delx/util-hex-to-rgb/v1).","failureModes":["Invalid or malformed hex string returns valid:false with r/g/b set to 0","Missing `hex` field in request body may result in a 400 error","Hex codes with alpha channel (8-digit) may not be parsed correctly","Hex without leading `#` may fail validation depending on parser strictness"],"whenToPreferThis":"Choose this endpoint when you need a simple, no-setup, pay-per-call hex-to-RGB conversion with a verifiable on-chain payment trail via x402 (USDC on Base or Solana). It is ideal for agents that occasionally need color conversion without embedding a local library, or when auditability of each API call via blockchain payment is required. For bulk conversions or when you already have a color library available locally, prefer a local implementation instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:36.949Z","isFirstParty":false,"canonicalSlug":"delx-commerce-hex-to-rgb-color-converter-935bef45"}