# GoCreative Color Converter — Hex to RGB/HSL

> GoCreative Color Converter — Hex to RGB/HSL is a paid API for AI agents from api.gocreativeai.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Converts a hex color code into its RGB and HSL representations, returning all three color format values computed in real time.

## Facts

- Endpoint: GET https://api.gocreativeai.com/v1/calc/color/%7Barg%7D
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gocreative-color-converter-hex-to-rgb-hsl-2d9990bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ilezKIEevalAE03L-OU-_

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 gocreative-color-converter-hex-to-rgb-hsl-2d9990bf
```

Example prompt: Convert the hex color #FF5733 to its RGB and HSL values for me.

## When to prefer this

Use this endpoint when an agent needs to programmatically convert a hex color code to RGB or HSL format without setting up a local color library. It is ideal for design automation, generating CSS variables, or feeding color data into downstream style or rendering APIs. At $0.005 USDC per call with no API key required, it is suitable for lightweight, on-demand color conversion tasks in agent workflows.

## Known failure modes

- Invalid or malformed hex color code returns an error
- Missing required 'input' query parameter causes a 400-level error
- Hex code without leading '#' may not parse correctly
- Non-hex characters in the color value cause parsing failures

## How this service works

Keyless, pay-per-call compliance &amp; regulated-data API for AI agents — OFAC wallet + sanctions/PEP + KYB screening, SEC filings, FRED economics, FDA recalls, federal awards, plus continuous monitoring. USDC on Base/Solana via x402, native MCP. No API key, no signup.

## Output

Returns an object with the parsed red (r), green (g), and blue (b) integer values, plus formatted strings for RGB (e.g. 'rgb(255, 87, 51)'), HSL (e.g. 'hsl(11, 100%, 60%)'), and the normalized hex value, along with a source field indicating 'computed'.

## Example request

```json
{
 "arg": "#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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "endpoint argument"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gocreative-color-converter-hex-to-rgb-hsl-2d9990bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gocreativeai.com](https://www.zero.xyz/host/api.gocreativeai.com/llms.txt)
