# Color and Design Tools – Hex Color Converter

> Color and Design Tools – Hex Color Converter is a paid API for AI agents from color-design.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Convert a hex color code to RGB, HSL, HSV, and CMYK values, including CSS strings and relative luminance.

## Facts

- Endpoint: GET https://color-design.x402tookit.com/color-convert?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/color-and-design-tools-hex-color-converter-e314a2e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__pV00ihyoBPKYeGX2vzyh

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-and-design-tools-hex-color-converter-e314a2e8
```

Example prompt: What are the RGB, HSL, HSV, and CMYK values for the hex color #1a2b3c, and can you also give me the CSS strings and relative luminance?

## When to prefer this

Use this endpoint when you need precise, multi-format color space conversion from a hex code — especially when you need relative luminance (for WCAG contrast calculations), CSS-ready strings, or all major color spaces (RGB, HSL, HSV, CMYK) in a single call. Prefer this over manual calculation or generic utilities when accuracy and completeness across all color models is required.

## Known failure modes

- Invalid or malformed hex color string returns an error or null values
- Missing required 'color' query parameter causes a 400-level error
- Hex values outside standard range may return degraded results indicated by the 'degraded' field

## How this service works

Convert a hex color to RGB, HSL, HSV and CMYK with CSS strings and relative luminance, exactly.

## Output

Returns a structured object containing the input hex, RGB (r, g, b), HSL (h, s, l), HSV (h, s, v), and CMYK (c, m, y, k) numeric values, CSS-ready strings for RGB and HSL, the relative luminance value, and optional metadata like source and summary.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "color"
     ],
     "properties": {
      "color": {
       "type": "string",
       "description": "Hex color, e.g. 1a2b3c or #fff"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "css": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "hsl": {
         "type": [
          "null",
          "string"
         ]
        },
        "rgb": {
         "type": [
          "null",
          "string"
         ]
        }
       }
      },
      "hex": {
       "type": [
        "null",
        "string"
       ]
      },
      "hsl": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "h": {
         "type": [
          "null",
          "number"
         ]
        },
        "l": {
         "type": [
          "null",
          "number"
         ]
        },
        "s": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "hsv": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "h": {
         "type": [
          "null",
          "number"
         ]
        },
        "s": {
         "type": [
          "null",
          "number"
         ]
        },
        "v": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "rgb": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "b": {
         "type": [
          "null",
          "number"
         ]
        },
        "g": {
         "type": [
          "null",
          "number"
         ]
        },
        "r": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "cmyk":
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/color-and-design-tools-hex-color-converter-e314a2e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from color-design.x402tookit.com](https://www.zero.xyz/host/color-design.x402tookit.com/llms.txt)
