# CoCo Color Utility – Hex Color Parser & Accessibility Analyzer

> CoCo Color Utility – Hex Color Parser & Accessibility Analyzer is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Converts a color value string into hex, RGB, and HSL representations with WCAG accessibility contrast scores

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/color?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-color-utility-hex-color-parser-accessibility-analyzer-169d63a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1fW55A4-MweoR7sEO127b

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 coco-color-utility-hex-color-parser-accessibility-analyzer-169d63a0
```

Example prompt: Can you check the color #1e90ff for me — give me its RGB and HSL values, and tell me whether it passes WCAG AA contrast on both white and black backgrounds?

## When to prefer this

Choose this endpoint when you need a quick, cheap color utility that simultaneously handles format conversion (name/hex to hex/RGB/HSL) AND accessibility scoring (WCAG AA contrast ratios) in a single call. Ideal for UI agents, design automation, or accessibility checkers that need to validate color choices without running a heavier color library locally.

## Known failure modes

- Unrecognized or malformed color string returns an error or unexpected hex output
- Missing 'value' query parameter may result in a default or error response
- Non-standard color names not in the parser's dictionary may fail to resolve
- Edge case colors near the contrast threshold may have borderline WCAG results

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

Returns a JSON object containing the hex code, RGB array [r,g,b], HSL array [h,s,l], the recommended best text color ('black' or 'white'), boolean WCAG AA pass/fail flags for both black and white backgrounds, and the numerical contrast ratios against both black and white.

## 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",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "value": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "hex"
     ],
     "properties": {
      "hex": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "#1e90ff",
  "hsl": [
   210,
   100,
   56
  ],
  "rgb": [
   30,
   144,
   255
  ],
  "best_text": "black",
  "wcag_aa_on_black": true,
  "wcag_aa_on_white": false,
  "contrast_vs_black": 6.49,
  "contrast_vs_white": 3.24
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-color-utility-hex-color-parser-accessibility-analyzer-169d63a0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
