# Vextorium Color Contrast & Converter

> Vextorium Color Contrast & Converter 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-11).

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

## Facts

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

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-converter-c5184f2b -d '<json body>'
```

Example prompt: Check if white text (#ffffff) on a dark navy background (#0d1b2a) passes WCAG AA and AAA contrast requirements, and also give me all the color format conversions (RGB, HSL, HSV, CMYK) for both colors.

## When to prefer this

Use this endpoint when you need both color format conversion AND WCAG accessibility contrast evaluation in a single call. It is particularly valuable for UI/UX design automation, accessibility auditing pipelines, or design systems that need to validate color choices against WCAG 2.x AA and AAA standards without calling separate conversion and contrast services.

## Known failure modes

- Invalid color format provided — returns error if color string cannot be parsed as #RRGGBB, #RGB, rgb(), or hsl()
- Missing required 'color' field — returns validation error
- Background color ('fund') in unrecognized format — may fail silently or return null contrast fields
- Network or payment failure resulting in 402 or 5xx response

## 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 full color representations of the input color (and optional background) in HEX, RGB, HSL, HSV, CMYK, and relative luminance. When a background is provided, also returns the WCAG 2.x contrast ratio and boolean pass/fail flags for: normal text AA, normal text AAA, large text AA, large text AAA, and UI components. Without a background, suggests black or white as the accessible text color.

## 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": {
     "required": [
      "color"
     ],
     "properties": {
      "fund": {
       "type": "string",
       "description": "Background color (optional)"
      },
      "color": {
       "type": "string",
       "description": "#RRGGBB, #RGB, rgb() or hsl()"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": [
      "object",
      "null"
     ],
     "properties": {
      "fund": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "hex": {
         "type": [
          "string",
          "null"
         ]
        },
        "hsl": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": [
           "null",
           "number"
          ]
         }
        },
        "hsv": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": [
           "null",
           "number"
          ]
         }
        },
        "rgb": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": [
           "null",
           "number"
          ]
         }
        },
        "cmyk": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": [
           "null",
           "number"
          ]
         }
        },
        "luminance": {
         "type": [
          "number",
          "null"
         ]
        }
       }
      },
      "color": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "hex": {
         "type": [
          "string",
          "null"
         ]
        },
        "hsl": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": [
  
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fund": {
   "hex": "#0d0e11",
   "hsl": [
    225,
    13
   ],
   "hsv": [
    225,
    24
   ],
   "rgb": [
    13,
    14
   ],
   "cmyk": [
    24,
    18
   ],
   "luminance": 0.0044
  },
  "color": {
   "hex": "#00ff66",
   "hsl": [
    144,
    100
   ],
   "hsv": [
    144,
    100
   ],
   "rgb": [
    0,
    255
   ],
   "cmyk": [
    100,
    0
   ],
   "luminance": 0.7248
  },
  "contrast": {
   "ratio": 14.24,
   "ui_components": true,
   "grande_text_AA": true,
   "normal_text_AA": true,
   "grande_text_AAA": true,
   "normal_text_AAA": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-color-contrast-converter-c5184f2b/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)
