# Color Toolkit – Nearest Named Color

> Color Toolkit – Nearest Named Color 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-14).

Takes any CSS color value as input and returns the closest matching named color

## Facts

- Endpoint: POST https://color.openverbs.com/v1/nearest-named
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/color-toolkit-nearest-named-color-3136c144
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5RCLJrwOTZF6MQQxnHvw4

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-nearest-named-color-3136c144 -d '<json body>'
```

Example prompt: What's the nearest named CSS color to #3a7bd5?

## When to prefer this

Use this endpoint when you need to map any arbitrary CSS color (hex, RGB, HSL, named, etc.) to its closest standard CSS named color — ideal for design systems, accessibility labeling, natural language color descriptions, or any workflow where human-readable color names are needed instead of numeric values.

## Known failure modes

- Invalid or malformed CSS color string causes a 400 error
- Empty or missing color field in the request body returns a validation error
- Extremely unusual color formats not recognized as valid CSS may be rejected
- Service unavailable if upstream is down, returning 5xx errors

## How this service works

Find the nearest CSS named color to a given color, by perceptual distance.

## Output

Returns the nearest named CSS color to the input, including the color name and likely distance or similarity information indicating how close the match is

## 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."
      }
     },
     "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-nearest-named-color-3136c144/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)
