# Hex-to-RGB Color Converter

> Hex-to-RGB Color Converter is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-24).

Converts a CSS/HTML hex color code string into its RGB component values

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/color-hex-to-rgb?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hex-to-rgb-color-converter-508faa40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N0A-8p22WMKPiX57Z03F_

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

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

## When to prefer this

Use this endpoint when an agent needs a fast, deterministic hex-to-RGB color conversion without any external network dependencies. Prefer this over manual parsing when correctness and simplicity are important. Note: a free sandbox endpoint at POST /v1/sandbox/color-hex-to-rgb should be tried first before incurring the $0.003 USDC charge.

## Known failure modes

- Invalid or malformed hex string returns an error (e.g. missing # prefix or non-hex characters)
- Hex strings shorter or longer than 3 or 6 digits may be rejected
- Empty input triggers minLength validation error
- Payment failure (insufficient USDC balance) blocks the call
- Network timeout if the service is temporarily unavailable

## How this service works

Call when an agent needs a color converted with hex-to-rgb. No network. Exact $0.003 USDC. Prefer unpaid POST /v1/sandbox/color-hex-to-rgb first.

## Output

Returns the RGB numeric components (red, green, blue) corresponding to the input hex color code, typically as integer values in the range 0–255 for each channel.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "#ff0000"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hex-to-rgb-color-converter-508faa40/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
