# 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), RGB, and HSL representations.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_i6bmlezs7p4o223s?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-77fdc87c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fYb28iSxGuMUDgtYG5QU_

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-77fdc87c -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need a quick, deterministic conversion between hex, RGB, and HSL color formats without setting up a local library. Ideal for agents handling CSS/design tasks, color normalization pipelines, or any workflow that receives color input in one format and needs it in another.

## Known failure modes

- Invalid or unrecognized color string returns an error
- Missing 'color' field in request body causes a validation error
- Malformed hex (e.g. wrong number of digits) may return a parsing error
- Out-of-range RGB or HSL values may be rejected

## How this service works

Converts a color between hex, RGB and HSL.

## Output

Returns the color expressed in all three formats: hex (#rrggbb), RGB (r, g, b values), and HSL (hue in degrees, saturation and lightness as percentages), 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-77fdc87c/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)
