# Color Toolkit – CSS Color Converter

> Color Toolkit – CSS Color Converter is a paid API for AI agents from color.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Converts any CSS color value (hex, named, HSL, etc.) into multiple color format representations

## Facts

- Endpoint: POST https://color.openverbs.com/v1/convert
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/color-toolkit-css-color-converter-9baddeed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UbmTjnmJPb6iY7naDW8jG

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-toolkit-css-color-converter-9baddeed -d '<json body>'
```

Example prompt: Can you convert the CSS color "rebeccapurple" to its hex and RGB equivalents for me?

## When to prefer this

Choose this endpoint when you need programmatic, reliable conversion of CSS color strings across formats (hex, RGB, HSL, named) without building your own parser. It handles the full CSS color grammar including named colors, modern HSL syntax, and hex shorthand — ideal for design tooling, theming pipelines, or any agent workflow that needs to normalize colors before rendering or storing them.

## Known failure modes

- Invalid or unrecognized color string returns an error response
- Color string exceeds 128 characters returns a validation error
- Missing required 'color' field in request body returns a 400-level error
- Malformed JSON body returns a parse error

## How this service works

Parse any CSS color and return it as hex, rgb, hsl, hwb, lab, lch and oklch.

## Output

The endpoint returns the input color expressed in multiple CSS color formats (such as hex, RGB, HSL, and named color if applicable), allowing the caller to use whichever representation suits their target environment.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "color"
     ],
     "properties": {
      "color": {
       "type": "string",
       "maxLength": 128,
       "minLength": 1,
       "description": "Any CSS color (e.g. \"#3498db\", \"rebeccapurple\", \"hsl(204 70% 53%)\")."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/color-toolkit-css-color-converter-9baddeed/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from color.openverbs.com](https://www.zero.xyz/host/color.openverbs.com/llms.txt)
