# Vextorium Color Contrast & Conversion API

> Vextorium Color Contrast & Conversion API is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-16).

Converts a color between HEX, RGB, HSL, HSV, and CMYK formats and computes WCAG 2.x contrast ratio against an optional background color, returning AA/AAA accessibility pass flags.

## Facts

- Endpoint: POST https://api.vextorium.com/color-contraste-pago?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-color-contrast-conversion-api-0d61a1d9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qR20BH_j0TBXgB5EPatQt

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 vextorium-color-contrast-conversion-api-0d61a1d9 -d '<json body>'
```

Example prompt: What's the WCAG contrast ratio between #00ff66 and #0d0e11, and does it pass AA and AAA for normal text? Also give me the RGB, HSL, and CMYK values for both colors.

## When to prefer this

Choose this endpoint when you need both color format conversion and WCAG 2.x accessibility validation in a single call, especially for design system audits, automated accessibility checks in CI/CD pipelines, or generating print-ready CMYK values. It is ideal when you need luminance, contrast ratio, and multiple pass/fail flags (AA, AAA, large/normal text, UI components) together rather than separate tools.

## Known failure modes

- Invalid color format (not recognized HEX, RGB, or HSL) returns an error
- Missing required 'color' field returns a validation error
- Malformed background color 'fondo' may cause computation to skip contrast section
- Payment not fulfilled results in 402 response from x402 layer

## How this service works

Convert a color between HEX, RGB, HSL, HSV and CMYK and, given a background, compute the WCAG 2.x contrast ratio with AA/AAA pass flags; without background, suggests black or white text.

## Output

Returns the input color fully converted to HEX, RGB, HSL, HSV, CMYK, and relative luminance. If a background color was provided, also returns the same conversion data for the background, plus a contrast object containing the ratio (e.g. 14.24) and boolean WCAG pass flags for AA normal text, AA large text, AAA normal text, AAA large text, and UI components. Without a background, suggests black or white as the optimal text color.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "color": {
   "type": "string",
   "description": "#RRGGBB, #RGB, rgb() or hsl()"
  },
  "fondo": {
   "type": "string",
   "description": "Background color (optional)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "color": {
   "hex": "#00ff66",
   "hsl": [
    144,
    100,
    50
   ],
   "hsv": [
    144,
    100,
    100
   ],
   "rgb": [
    0,
    255,
    102
   ],
   "cmyk": [
    100,
    0,
    60,
    0
   ],
   "luminancia": 0.7248
  },
  "fondo": {
   "hex": "#0d0e11",
   "hsl": [
    225,
    13,
    6
   ],
   "hsv": [
    225,
    24,
    7
   ],
   "rgb": [
    13,
    14,
    17
   ],
   "cmyk": [
    24,
    18,
    0,
    93
   ],
   "luminancia": 0.0044
  },
  "contraste": {
   "ratio": 14.24,
   "componentes_ui": true,
   "AA_texto_grande": true,
   "AA_texto_normal": true,
   "AAA_texto_grande": true,
   "AAA_texto_normal": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-color-contrast-conversion-api-0d61a1d9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
