# Delx Color Hex Norm

> Delx Color Hex Norm is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Normalizes a short-form #RGB or long-form #RRGGBB color hex string to its canonical lowercase #rrggbb representation.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/color-hex-norm
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-color-hex-norm-c519670a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bIPdGDBXi8zMOuWEpEqja

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-color-hex-norm-c519670a -d '<json body>'
```

Example prompt: Can you normalize the color hex '#A3f' to its canonical full-form #rrggbb format?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## 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-color-hex-norm-c519670a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
