# Tanod utilpeek Color Conversion & WCAG Contrast Check

> Tanod utilpeek Color Conversion & WCAG Contrast Check is a paid API for AI agents from tanod.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-09).

Converts a CSS color to hex, RGB, HSL, HSV, CMYK, and OKLCH formats, and optionally checks WCAG 2.x contrast ratio (AA/AAA) against a background color.

## Facts

- Endpoint: POST https://tanod.dev/v1/color/convert?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanod-utilpeek-color-conversion-wcag-contrast-check-4ec9d9d3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8W4nIef168s-xbQdUjLuL

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 tanod-utilpeek-color-conversion-wcag-contrast-check-4ec9d9d3 -d '<json body>'
```

Example prompt: Convert #3B82F6 to all color formats — hex, RGB, HSL, HSV, CMYK, and OKLCH — and also check if it meets WCAG AA and AAA contrast requirements when used as text on a white (#FFFFFF) background.

## When to prefer this

Choose this endpoint when you need comprehensive color format conversion across all major color spaces in a single call, or when checking WCAG 2.x accessibility compliance between a foreground and background color pair. It is especially valuable for design systems, accessibility audits, and CSS tooling workflows where multiple color representations are needed simultaneously.

## Known failure modes

- Invalid or unrecognized color string returns a 4xx error
- Color name not in the 148 supported CSS names is rejected
- Malformed hex (wrong number of digits) causes a parse error
- Background color field provided but also malformed triggers validation failure

## How this service works

One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.

## Output

Returns the input color expressed in all major color spaces: hex, RGB, HSL, HSV, CMYK, and OKLCH. When a background color is provided, also returns the WCAG 2.x contrast ratio (a number like 4.5:1) and pass/fail status for both the AA and AAA accessibility conformance levels.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "color": {
   "type": "string",
   "maxLength": 64,
   "minLength": 1,
   "description": "A CSS color: hex (#rgb, #rgba, #rrggbb, #rrggbbaa), rgb() / rgba(), hsl() / hsla() or a CSS color name (148 names, plus transparent)."
  },
  "background": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 64,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Optional second color (e.g. the background): adds the WCAG 2.x contrast ratio and AA / AAA pass / fail."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "color": {
   "hex": "#777777",
   "hsl": {
    "h": 0,
    "l": 46.67,
    "s": 0,
    "css": "hsl(0 0% 46.67%)"
   },
   "hsv": {
    "h": 0,
    "s": 0,
    "v": 46.67
   },
   "rgb": {
    "b": 119,
    "g": 119,
    "r": 119,
    "css": "rgb(119 119 119)"
   },
   "cmyk": {
    "c": 0,
    "k": 53.33,
    "m": 0,
    "y": 0,
    "note": "naive RGB to CMYK formula (no ICC profile, no ink limits): not a print proof"
   },
   "hex8": "#777777ff",
   "alpha": 1,
   "names": [],
   "oklch": {
    "c": 0,
    "h": null,
    "l": 0.5693,
    "css": "oklch(56.93% 0 none)"
   },
   "relative_luminance": 0.184475
  },
  "contrast": {
   "note": "WCAG 2.x contrast; pass/fail compares the unrounded ratio. Large text: at least 18 pt (24 px), or 14 pt (about 18.7 px) bold. Thresholds: AA 4.5 normal / 3 large, AAA 7 / 4.5, UI components and graphics 3 (SC 1.4.11).",
   "ratio": 4.48,
   "composited": false,
   "ratio_text": "4.48:1",
   "aa_large_text": true,
   "aa_normal_text": false,
   "aaa_large_text": false,
   "aaa_normal_text": false,
   "ratio_unrounded": 4.478089,
   "aa_ui_components": true
  },
  "background": {
   "hex": "#ffffff",
   "hsl": {
    "h": 0,
    "l": 100,
    "s": 0,
    "css": "hsl(0 0% 100%)"
   },
   "hsv": {
    "h": 0,
    "s": 0,
    "v": 100
   },
   "rgb": {
    "b": 255,
    "g": 255,
    "r": 255,
    "css": "rgb(255 255 255)"
   },
   "cmyk": {
    "c": 0,
    "k": 0,
    "m": 0,
    "y": 0,
    "note": "naive RGB to CMYK formula (no ICC profile, no ink limits): not a print proof"
   },
   "hex8": "#ffffffff",
   "alpha": 1,
   "names": [
    "white"
   ],
   "oklch": {
    "c": 0,
    "h": null,
    "l": 1,
    "css": "oklch(100% 0 none)"
   },
   "relative_luminance": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanod-utilpeek-color-conversion-wcag-contrast-check-4ec9d9d3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tanod.dev](https://www.zero.xyz/host/tanod.dev/llms.txt)
