{"uid":"cap_txY54I2l35AH3Dk6sTNJe","slug":"delx-hex-to-rgb-4e0e4376","name":"Delx Hex To RGB","description":"Convert #rrggbb to RGB channels. Call when you bridge CSS hex into agent numeric color ops. Returns r,g,b and valid 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/hex-to-rgb","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_SUbECwIwxUL-O8ScOa1jS","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 hex color string (#rrggbb) into its individual red, green, and blue numeric channel values.","exampleAgentPrompt":"Convert the hex color #3a7bd5 into its RGB channel values so I can use them in a numeric color calculation.","exampleUseCases":[{"title":"CSS color to numeric pipeline","prompt":"I have a brand color defined as #e63946 in CSS and I need its red, green, and blue numeric values to feed into a color mixing algorithm — can you convert that hex to RGB?"},{"title":"Validate and decompose design token","prompt":"Our design system stores colors as hex codes like #2d6a4f — convert that to individual RGB channels so I can check whether the red channel is below 100."},{"title":"Dynamic color math in agent workflow","prompt":"I'm building a gradient tool and need to interpolate between #ffffff and #000000 — can you give me the RGB breakdown of #ffffff so I can do the math?"}],"resultDescription":"Returns a JSON object with integer values for r, g, and b channels (each 0–255) parsed from the input hex string, plus a boolean validity indicator confirming whether the input was a well-formed hex color.","failureModes":["Malformed or missing hex string returns an error or invalid=true","Hex string without leading # may fail parsing","Short-form hex (#rgb) may not be supported","Non-color hex strings (e.g. hex-encoded bytes) produce numeric but semantically meaningless output"],"whenToPreferThis":"Use this endpoint when an agent or pipeline needs to programmatically decompose a CSS hex color string into numeric RGB channels for downstream color math, comparison, or rendering — especially in agentic workflows where no local computation is desired and a lightweight, pay-per-call utility is preferred over bundling a color library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:52.320Z","isFirstParty":false}