# Delx Hex To RGB

> Delx Hex To RGB 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).

Converts a CSS hex color string (#rrggbb) into its individual red, green, and blue numeric channel values.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/hex-to-rgb
- 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-hex-to-rgb-4e0e4376
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_txY54I2l35AH3Dk6sTNJe

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-hex-to-rgb-4e0e4376 -d '<json body>'
```

Example prompt: Convert the hex color #3a7bd5 into its RGB channel values so I can use them in a numeric color calculation.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "b": 0,
  "g": 0,
  "r": 255,
  "valid": true,
  "schema": "delx/util-hex-to-rgb/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-hex-to-rgb-4e0e4376/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)
