# Sindri Color Format Converter

> Sindri Color Format Converter is a paid API for AI agents from x402.outpimp.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

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

## Facts

- Endpoint: POST https://x402.outpimp.com/colorConvert
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sindri-color-format-converter-427a91d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qkaPqghL3DNy-3ryxAgHe

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

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

## When to prefer this

Choose this endpoint when you need a quick, exact, single-color format conversion between hex, RGB, and HSL without setting up a local library. Ideal for design automation pipelines, CSS tooling, or any agent workflow that handles colors as strings or structured objects and needs to normalize them to a consistent format.

## Known failure modes

- Invalid or out-of-range color value for the specified source format (e.g. RGB values outside 0–255)
- Missing required fields (to, from, or value) returns an error
- Unsupported format string not in the enum (hex/rgb/hsl) returns validation error
- Same source and target format may return the input unchanged or an error depending on implementation

## How this service works

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

## Output

Returns the color expressed in the requested target format: a hex string (e.g. '#1a2b3c') for hex, an object with r/g/b integer fields for rgb, or an object with h/s/l fields for hsl.

## 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-427a91d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.outpimp.com](https://www.zero.xyz/host/x402.outpimp.com/llms.txt)
