{"uid":"cap_xIeZsr67S6_G58qmC5lvi","slug":"delx-rgb-to-hex-e2af3207","name":"Delx RGB To Hex","description":"Convert RGB channels to #rrggbb. Call when you bridge agent RGB pickers to CSS hex. Returns hex and channels for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/rgb-to-hex","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"b":{"type":"integer","description":"Input field: b."},"g":{"type":"integer","description":"Input field: g."},"r":{"type":"integer","description":"Input field: r."}}},"responseSchema":{"type":"json","example":{"b":0,"g":0,"r":255,"hex":"#ff0000","schema":"delx/util-rgb-to-hex/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_8Nimp86K-pdohZR4Qq5Mf","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 red, green, and blue integer channel values (0–255) into a CSS #rrggbb hex color string","exampleAgentPrompt":"Convert RGB values red 255, green 99, blue 71 into a CSS hex color code for me.","exampleUseCases":[{"title":"CSS styling from color picker","prompt":"I picked a color in my design tool and it gives me RGB 72, 199, 142 — what's the hex code I can drop straight into my CSS?"},{"title":"Agent UI theme color bridging","prompt":"My agent's UI sends color choices as RGB tuples. Convert RGB 30, 144, 255 to a hex string so I can use it in the HTML template."},{"title":"Brand color cross-format lookup","prompt":"Our brand red is RGB 220, 38, 38. What's the equivalent hex color code I should use in the stylesheet?"}],"resultDescription":"Returns a JSON object containing the hex color string in #rrggbb format (e.g. #ff6347) and the original red, green, and blue channel integer values that were used to produce it.","failureModes":["Missing one or more of r, g, b fields returns a 4xx validation error","Channel values outside 0–255 integer range may return an error or unexpected result","Non-integer (float or string) channel values may fail schema validation","Network or service downtime returns a 5xx error","Insufficient USDC balance or x402 payment failure results in a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when your agent receives RGB channel integers from a color picker, sensor, or design tool and needs a CSS-ready #rrggbb hex string with no additional dependencies, API keys, or external network calls. It is purpose-built for lightweight, stateless color conversion in agentic pipelines where simplicity and low cost ($0.001 USDC) matter more than a full-featured color library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:52.319Z","isFirstParty":false}