# RGB to HSL Color Conversion

> RGB to HSL Color Conversion is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.007/call, status unknown (last checked 2026-10-02).

Converts an RGB color value to its HSL (Hue, Saturation, Lightness) equivalent

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/color-rgb-to-hsl?utm_source=zero.xyz
- Price: $0.007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rgb-to-hsl-color-conversion-c1dd4b11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DSM7Ce72mwz4sG5xc8pFF

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 rgb-to-hsl-color-conversion-c1dd4b11 -d '<json body>'
```

Example prompt: Can you convert the color rgb(120, 45, 200) to HSL for me?

## When to prefer this

Choose this endpoint when you need a pure, local (no-network) RGB-to-HSL color conversion without setting up your own math library. It is useful in agent pipelines processing color values for CSS theming, design tools, or color analysis workflows where HSL is the required output format. At $0.007 USDC per call it is suitable for on-demand single conversions; try the free sandbox POST /v1/sandbox/color-rgb-to-hsl first if available.

## Known failure modes

- Invalid or malformed RGB input string returns an error
- Input text exceeds maxLength of 100,000 characters
- Missing or empty text field causes validation failure
- Ambiguous color format not parseable as RGB may yield incorrect results

## How this service works

Call when an agent needs a color converted with rgb-to-hsl. No network. Exact $0.007 USDC. Prefer unpaid POST /v1/sandbox/color-rgb-to-hsl first.

## Output

Returns the HSL representation of the provided RGB color, including numeric hue (0–360), saturation (0–100%), and lightness (0–100%) values computed from the input RGB data

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "rgb(255, 0, 0)"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rgb-to-hsl-color-conversion-c1dd4b11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
