# Delx Commerce RGB to Hex Converter

> Delx Commerce RGB to Hex 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 RGB integer color values (red, green, blue) into a CSS-compatible hexadecimal color string

## Facts

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

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

Example prompt: What's the hex color code for RGB 255, 128, 0?

## When to prefer this

Use this endpoint when an agent needs a simple, deterministic, pay-per-call RGB-to-hex conversion without any signup or API key management. Ideal for agentic workflows that require verifiable, micropayment-based utility calls on Base or Solana via USDC, and where no local color-conversion library is available or desired.

## Known failure modes

- Integer values outside 0-255 range may produce unexpected or invalid hex output
- Missing r, g, or b fields may cause a 400 or malformed response
- Non-integer inputs (e.g. floats or strings) may be rejected or silently truncated
- Payment failure via x402 will block the request before processing

## 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 input r, g, b integer values echoed back, the computed hex color string (e.g. '#ff0000'), and a schema identifier string ('delx/util-rgb-to-hex/v1') for verifiable delivery confirmation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "b": {
   "type": "integer",
   "description": "Input field: b."
  },
  "g": {
   "type": "integer",
   "description": "Input field: g."
  },
  "r": {
   "type": "integer",
   "description": "Input field: r."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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