# Delx Color Convert

> Delx Color Convert is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-20).

Converts hex or RGB color values into all three formats: hex, RGB, and HSL

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/color-convert?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-color-convert-73041467
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eB-fnoVWVn2UQyrfy2rSC

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 delx-color-convert-73041467 -d '<json body>'
```

Example prompt: Convert the color #3A8DFF into its RGB and HSL equivalents so I can use them in my CSS stylesheet.

## When to prefer this

Choose this endpoint when you need a quick, deterministic conversion between hex, RGB, and HSL color formats without standing up your own color math. Ideal for agents working in design automation, CSS generation, or any workflow that requires color format normalization across multiple representations in a single call.

## Known failure modes

- Invalid color string (malformed hex or RGB syntax) — returns error indicating unparseable input
- Missing input color parameter — returns 400-style error
- Color value out of range (e.g. rgb(300, 0, 0)) — may return error or clamp behavior
- Payment failure or insufficient USDC balance via x402 — transaction rejected before processing

## How this service works

Convert #hex or rgb() colors to hex/rgb/hsl for $0.001 USDC. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.

## Output

Returns the input color expressed in all three formats: hex (e.g. #3a8dff), RGB (e.g. rgb(58, 141, 255)), and HSL (e.g. hsl(214, 100%, 61%))

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-color-convert-73041467/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
