# Delx Commerce — Hex to RGB Color Converter

> Delx Commerce — Hex to RGB Color Converter 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).

Converts a CSS/HTML hex color code into its red, green, and blue (RGB) integer components

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/hex-to-rgb?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-hex-to-rgb-color-converter-935bef45
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9c1oBG8hnbW53aUheHcGK

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-hex-to-rgb-color-converter-935bef45 -d '<json body>'
```

Example prompt: Convert the hex color #FF5733 to its RGB values for me.

## When to prefer this

Choose this endpoint when you need a simple, no-setup, pay-per-call hex-to-RGB conversion with a verifiable on-chain payment trail via x402 (USDC on Base or Solana). It is ideal for agents that occasionally need color conversion without embedding a local library, or when auditability of each API call via blockchain payment is required. For bulk conversions or when you already have a color library available locally, prefer a local implementation instead.

## Known failure modes

- Invalid or malformed hex string returns valid:false with r/g/b set to 0
- Missing `hex` field in request body may result in a 400 error
- Hex codes with alpha channel (8-digit) may not be parsed correctly
- Hex without leading `#` may fail validation depending on parser strictness

## How this service works

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

## Output

A JSON object containing the integer values for red (r), green (g), and blue (b) channels (each 0–255), a boolean `valid` flag indicating whether the input was a parseable hex color, and a schema identifier string (delx/util-hex-to-rgb/v1).

## 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-commerce-hex-to-rgb-color-converter-935bef45/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)
