# Delx Commerce — Color Hex Normalizer

> Delx Commerce — Color Hex Normalizer is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Validates and normalizes a hex color code string into a canonical format, returning the cleaned hex value and a validity flag.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/color-hex-norm?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-color-hex-normalizer-74614949
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O4zdciT0OOBoS4WnasYGl

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-color-hex-normalizer-74614949 -d '<json body>'
```

Example prompt: Can you normalize and validate this hex color code for me: '#00ff88'? I want to make sure it's in the correct canonical format.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

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').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hex": {
   "type": "string",
   "description": "Input field: hex."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "#00ff88",
  "valid": true,
  "schema": "delx/util-color-hex-norm/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-color-hex-normalizer-74614949/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
