{"uid":"cap_bIPdGDBXi8zMOuWEpEqja","slug":"delx-color-hex-norm-c519670a","name":"Delx Color Hex Norm","description":"Normalize #RGB/#RRGGBB color hex. Call when you canonicalize agent color tokens for CSS. Returns normalized #rrggbb or invalid 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/color-hex-norm","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"hex":{"type":"string","description":"Input field: hex."}}},"responseSchema":{"type":"json","example":{"hex":"#00ff88","valid":true,"schema":"delx/util-color-hex-norm/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_abeBP3lfJqI8w9FxFUJQN","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":"Normalizes a short-form #RGB or long-form #RRGGBB color hex string to its canonical lowercase #rrggbb representation.","exampleAgentPrompt":"Can you normalize the color hex '#A3f' to its canonical full-form #rrggbb format?","exampleUseCases":[{"title":"Design token canonicalization pipeline","prompt":"I have a bunch of color tokens from our design system with values like '#F3A', '#ff3366', and '#ABC' — can you normalize all of them to the standard lowercase #rrggbb format so they're consistent for CSS?"},{"title":"User-input color validation in a form","prompt":"A user just typed '#1aB' into our color picker field — can you normalize and validate it so I know whether it's a real hex color and what the full canonical value is?"},{"title":"Agent theming with shorthand hex expansion","prompt":"My agent config has a brand color set to '#09C' — can you expand that shorthand to the full #rrggbb hex so I can use it directly in a stylesheet?"}],"resultDescription":"Returns a normalized, lowercase 7-character #rrggbb hex string when the input is a valid #RGB or #RRGGBB color, or an 'invalid' indicator when the input cannot be parsed as a valid hex color.","failureModes":["Input is not a recognized #RGB or #RRGGBB pattern — returns invalid marker","Missing or empty hex field — likely validation error","Hex includes alpha channel (#RGBA or #RRGGBBAA) which is not supported — returns invalid","Input contains non-hex characters — returns invalid"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, stateless, no-auth utility to canonicalize CSS color hex tokens in an agent pipeline. It is ideal for design-token normalization, CSS generation, or any workflow that must standardize mixed-case or shorthand hex inputs to a consistent #rrggbb format without setting up heavier color libraries or making external network calls.","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}