{"uid":"cap_O4zdciT0OOBoS4WnasYGl","slug":"delx-commerce-color-hex-normalizer-74614949","name":"Delx Commerce — Color Hex Normalizer","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/color-hex-norm?utm_source=zero.xyz","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_EQ0v4sBMc-bBTo2n8r78v","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":"Validates and normalizes a hex color code string into a canonical format, returning the cleaned hex value and a validity flag.","exampleAgentPrompt":"Can you normalize and validate this hex color code for me: '#00ff88'? I want to make sure it's in the correct canonical format.","exampleUseCases":[{"title":"Design system color validation","prompt":"I'm building a design system and users can input arbitrary color hex codes — can you validate and normalize '#0FF' so it's in the standard 6-digit canonical hex format?"},{"title":"User-submitted color sanitization","prompt":"Someone submitted '#GG1122' as a brand color — can you check whether it's a valid hex color and normalize it if it is?"},{"title":"Theme configuration cleanup","prompt":"I have a hex value '#f0f0f0' coming from a config file — validate it and give me the canonical normalized version so I can safely use it in my rendering pipeline."}],"resultDescription":"Returns a JSON object with the normalized hex color string (e.g. '#00ff88'), a boolean 'valid' flag indicating whether the input was a valid hex color, and a schema identifier string ('delx/util-color-hex-norm/v1').","failureModes":["Invalid or malformed hex input returns valid:false with the original or cleaned hex","Missing 'hex' field in request body may return an error or empty response","Non-string input types may cause a parse error","Hex codes with unsupported formats (e.g. 8-digit RGBA) may not be normalized correctly"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call, no-signup utility to validate and canonicalize hex color strings — especially in agent workflows where color data comes from untrusted user input, config files, or scraped content and must be sanitized before downstream use.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:56.950Z","isFirstParty":false,"canonicalSlug":"delx-commerce-color-hex-normalizer-74614949"}