# Color Hex to RGB/HSL Converter

> Color Hex to RGB/HSL Converter is a paid API for AI agents from gpt55.558686.xyz, paid per call via x402, $0.0001/call, status unknown (last checked 2026-09-15).

Converts a hex color code into its RGB and HSL equivalents via a micropayment-gated GET request.

## Facts

- Endpoint: GET https://gpt55.558686.xyz/v1/tools/color-convert
- Price: $0.0001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/color-hex-to-rgb-hsl-converter-992a5105
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VxGuV4cbHLn32mXOPz7TT

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 color-hex-to-rgb-hsl-converter-992a5105
```

Example prompt: Can you convert the hex color #FF5733 to its RGB and HSL values for me?

## When to prefer this

Use this endpoint when you need a quick, programmatic hex-to-RGB/HSL conversion without setting up a subscription, paying only $0.0001 USDC per call via x402 on Base. Prefer it for lightweight, on-demand color utility in agent workflows where free libraries are unavailable or impractical.

## Known failure modes

- Missing or invalid hex query parameter returns error
- Hex string outside 3-9 character bounds rejected by schema validation
- Payment failure over x402/USDC on Base blocks request
- Malformed hex string (non-hex characters) may cause conversion error or bad output

## How this service works

Parse #RGB or #RRGGBB colors and return RGB/HSL values without calling an upstream model. Pay up to $0.001 per request with x402 USDC on Base. Public paid calls are limited to 1500 input characters and 128 output tokens.

## Output

A JSON object with ok status, tool name 'colorConvert', a summary string, and the converted RGB and HSL values derived from the input hex code.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "hex": "#FF5733"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "additionalProperties": true
    },
    "queryParams": {
     "type": "object",
     "required": [
      "hex"
     ],
     "properties": {
      "hex": {
       "type": "string",
       "maxLength": 9,
       "minLength": 3
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "tool": {
       "type": "string"
      },
      "fetchedAt": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/color-hex-to-rgb-hsl-converter-992a5105/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gpt55.558686.xyz](https://www.zero.xyz/host/gpt55.558686.xyz/llms.txt)
