# RGB to Hex Color Converter

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

Converts an RGB color value (provided as text) into its hexadecimal color code representation.

## Facts

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

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

Example prompt: Can you convert the color rgb(255, 87, 34) to its hex code for me?

## When to prefer this

Use this endpoint when you need a quick, reliable, serverless RGB-to-hex color conversion without setting up local logic. It is best suited for agents that encounter color formatting tasks on the fly and need an exact, deterministic conversion. Prefer the free sandbox endpoint (/v1/sandbox/color-rgb-to-hex) for testing; use this paid endpoint in production when the sandbox is unavailable or not preferred.

## Known failure modes

- Invalid or missing text input returns an error
- RGB values out of range (e.g. >255) may cause unexpected results or an error
- Malformed input string that cannot be parsed as RGB values
- Payment failure or insufficient USDC balance returns a 402 error

## How this service works

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

## Output

Returns the hexadecimal color code corresponding to the provided RGB input values, typically as a string like '#FF5722'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "rgb(255, 0, 0)"
   ],
   "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/rgb-to-hex-color-converter-66325ff4/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)
