# centralcity.ai Color Converter

> centralcity.ai Color Converter is a paid API for AI agents from centralcity.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-19).

Converts a color value between hex (#rrggbb), RGB, and HSL formats

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_xhvyzr7an6xhrmux?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/centralcity-ai-color-converter-d70a13e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xjCQ4v4nNwrYfmwcrb4Bb

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 centralcity-ai-color-converter-d70a13e9 -d '<json body>'
```

Example prompt: Can you convert #ff5733 to its RGB and HSL equivalents for me?

## When to prefer this

Use this endpoint when you need to programmatically convert a color between hex, RGB, and HSL representations — especially in design automation, CSS generation, or any workflow where a color arrives in one format but must be used in another. It handles all common CSS color string formats in a single call.

## Known failure modes

- Invalid or unrecognized color string returns an error
- Malformed hex codes (wrong length, invalid characters) are rejected
- Out-of-range RGB values (e.g. rgb(300, 0, 0)) may cause an error
- Missing 'color' field in the request body results in a validation error

## How this service works

Converts a color between hex, RGB and HSL.

## Output

Returns the input color expressed in all three formats: hex (#rrggbb), RGB (rgb(r, g, b)), and HSL (hsl(h, s%, l%)), allowing the caller to use whichever representation is needed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "color": {
   "type": "string",
   "description": "A color as #rrggbb, #rgb, rgb(r, g, b) or hsl(h, s%, l%)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/centralcity-ai-color-converter-d70a13e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from centralcity.ai](https://www.zero.xyz/host/centralcity.ai/llms.txt)
