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

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_j3dnb4c7y3kqw2iv?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-3a4f4f51
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D-AofF05EZrkbPg4GHplv

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

Example prompt: Can you convert the color #3a7bd5 into its RGB and HSL equivalents for me?

## When to prefer this

Use this endpoint when you need a quick, reliable, single-call conversion between any of the three main CSS color formats (hex, RGB, HSL) without setting up a local color library. Ideal for agents working in web design, CSS generation, or design token pipelines where colors may arrive in mixed formats and need to be normalized.

## Known failure modes

- Invalid or unrecognized color string returns an error (e.g. malformed hex or out-of-range RGB values)
- Missing 'color' field in the request body results in a validation error
- Hex values with alpha channels (#rrggbbaa) may not be supported
- Percentage signs missing from HSL input may cause parse failure

## 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 (r, g, b values), and HSL (hue, saturation%, lightness%) — 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-3a4f4f51/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)
