# Agentshelf HEX to HSL Color Converter

> Agentshelf HEX to HSL Color Converter is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-29).

Converts a hexadecimal color code to its HSL (Hue, Saturation, Lightness) representation

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/color-hex-to-hsl?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-hex-to-hsl-color-converter-a8ee67f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NKPR-DBrE6LBSrbqm9CeP

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 agentshelf-hex-to-hsl-color-converter-a8ee67f7 -d '<json body>'
```

Example prompt: Can you convert the hex color #3A7BD5 to its HSL values — I need the hue, saturation, and lightness breakdown.

## When to prefer this

Use this endpoint when you need a quick, serverless hex-to-HSL color conversion without building the math yourself. Ideal for agents processing design tokens, CSS variables, or color palettes that require HSL format. Prefer the free sandbox POST /v1/sandbox/color-hex-to-hsl first; use this paid endpoint when the sandbox is unavailable or rate-limited.

## Known failure modes

- Invalid or malformed hex color string returns an error
- Empty or missing text field returns a validation error
- Hex codes with unsupported formats (e.g. missing # prefix or wrong length) may fail
- Network-level payment failure if USDC transaction is not completed

## How this service works

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

## Output

Returns the HSL representation of the provided hex color code, including numeric hue (0–360 degrees), saturation (0–100%), and lightness (0–100%) values.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "#ff0000"
   ],
   "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/agentshelf-hex-to-hsl-color-converter-a8ee67f7/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)
