# AgentShelf HSL-to-Hex Color Converter

> AgentShelf HSL-to-Hex Color Converter is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.006/call, status unknown (last checked 2026-10-24).

Converts an HSL color value expressed in text into its hexadecimal (#RRGGBB) representation

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/color-hsl-to-hex?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-hsl-to-hex-color-converter-55a5192a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wZ8Fc1vdvBTEUUxxHNlo7

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

Example prompt: Convert hsl(210, 75%, 45%) to its hex color code for me.

## When to prefer this

Use this endpoint when you need a deterministic, no-network color conversion from HSL to hex and have already exhausted the free sandbox option at /v1/sandbox/color-hsl-to-hex. It is best for agents that need exact hex codes from HSL inputs without relying on external services or libraries. Cost is $0.006 USDC per call, so prefer it only when the free path is unavailable.

## Known failure modes

- Invalid or malformed HSL text input returns an error
- Empty text field is rejected due to minLength:1 constraint
- HSL values outside valid ranges (hue >360, saturation/lightness >100%) may produce unexpected results or errors
- Network unavailability returns a 402 or connection error; prefer free sandbox endpoint /v1/sandbox/color-hsl-to-hex when available

## How this service works

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

## Output

Returns the hex color code (e.g. #3399CC) corresponding to the provided HSL input, as a text string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "hsl(0, 100%, 50%)"
   ],
   "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-hsl-to-hex-color-converter-55a5192a/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)
