# 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 formats

## Facts

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

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

Example prompt: Can you convert the color #3a7bd5 to both RGB and HSL formats for me?

## When to prefer this

Use this endpoint when you need a simple, reliable conversion between hex, RGB, and HSL color formats without spinning up a local library. Ideal for agents building CSS, design tokens, or color pipelines that need all three representations from a single input. It handles shorthand hex (#rgb) and all three input formats interchangeably.

## Known failure modes

- Invalid or unrecognized color string returns an error
- Missing 'color' field in request body returns a validation error
- Out-of-range values in RGB or HSL (e.g. rgb(300, 0, 0)) may return an error or be clamped
- Malformed hex strings (wrong length or non-hex characters) return an 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%)), so you can use the same color in any CSS or design context.

## 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-b6aaf1f9/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)
