# Sindri Color Format Converter

> Sindri Color Format Converter is a paid API for AI agents from ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Converts a color value between hex, RGB, and HSL representations using exact arithmetic.

## Facts

- Endpoint: POST https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/colorConvert?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sindri-color-format-converter-01b68dcc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yNNt9EAmnvHonSst-qN2A

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 sindri-color-format-converter-01b68dcc -d '<json body>'
```

Example prompt: Convert the hex color #1a2b3c to its HSL representation using exact arithmetic.

## When to prefer this

Use this endpoint when you need a precise, programmatic color format conversion between hex, RGB, and HSL — especially when exact arithmetic is required rather than approximate conversion. It is ideal for automated pipelines, design tooling, or any agent workflow that needs to normalize colors across different CSS or graphics representations without introducing rounding errors.

## Known failure modes

- Invalid or malformed color value for the specified source format (e.g. RGB values out of 0-255 range, malformed hex string)
- Unsupported or misspelled format enum value for 'from' or 'to' fields
- Missing required fields ('from', 'to', or 'value') in the request body
- Payment failure or insufficient USDC balance (x402 protocol rejection)

## How this service works

Converts a color between hex, rgb, and hsl representations using exact arithmetic.

## Output

Returns the color value in the requested target format — a hex string (e.g. '#ff5733') for hex output, or a structured object with r/g/b fields for RGB, or h/s/l fields for HSL, computed with exact arithmetic.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "enum": [
    "hex",
    "rgb",
    "hsl"
   ],
   "type": "string",
   "description": "Target color format."
  },
  "from": {
   "enum": [
    "hex",
    "rgb",
    "hsl"
   ],
   "type": "string",
   "description": "Source color format."
  },
  "value": {
   "description": "The color value: a string for hex, or {r,g,b}/{h,s,l} for rgb/hsl."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sindri-color-format-converter-01b68dcc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws](https://www.zero.xyz/host/ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/llms.txt)
