# Closest CSS Colour Name Lookup

> Closest CSS Colour Name Lookup is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-17).

Finds the closest CSS named colour to a given hex value and returns the name along with a distance score.

## Facts

- Endpoint: GET https://api.gadgethumans.com/color-name-lookup?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/closest-css-colour-name-lookup-e49e023b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7zV3TYlBGy5qjL-2HIh1-

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 closest-css-colour-name-lookup-e49e023b
```

Example prompt: What's the closest CSS named colour to the hex value #3a7bd5, and how far off is it?

## When to prefer this

Use this endpoint when you need to map an arbitrary hex colour to a human-readable CSS named colour — ideal for design documentation, accessibility labelling, UI tooltips, or any workflow that needs a semantic colour name rather than a raw hex value. It is CPU-only and returns instantly, making it suitable for real-time applications.

## Known failure modes

- Missing or malformed 'color' query parameter — likely returns an error response
- Invalid hex string (e.g. wrong length, non-hex characters) — may return an error or unexpected result
- Network timeout, though unlikely given pure CPU processing

## How this service works

Find the closest CSS named colour to a hex value, with the distance score. Pure CPU, instant.

## Output

Returns a JSON object indicating success, the closest CSS named colour name, and a numerical distance score representing how far the input hex is from that named colour.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "color"
     ],
     "properties": {
      "color": {
       "type": "string",
       "description": "Hex colour"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/closest-css-colour-name-lookup-e49e023b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gadgethumans.com](https://www.zero.xyz/host/api.gadgethumans.com/llms.txt)
