# Color Converter with WCAG Contrast & Accessibility Metrics

> Color Converter with WCAG Contrast & Accessibility Metrics is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Converts a color (hex, RGB, HSL, or CMYK) into all equivalent formats, finds the nearest CSS color name, and returns WCAG contrast ratios against white and black, luminance, and a complementary color.

## Facts

- Endpoint: GET https://intel.rallylive.ca/data/color
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/color-converter-with-wcag-contrast-accessibility-metrics-93126fc8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Sqc82OqrnQrlALkcGyrF-

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 color-converter-with-wcag-contrast-accessibility-metrics-93126fc8
```

Example prompt: Can you convert #3a7bd5 into all color formats — RGB, HSL, and CMYK — and also tell me the nearest CSS color name, its luminance, the complementary color, and whether it's accessible on white or black backgrounds according to WCAG?

## When to prefer this

Choose this endpoint when you need a one-shot conversion of a color across all major formats (hex, RGB, HSL, CMYK) combined with WCAG accessibility contrast ratios and a complementary color — ideal for design automation, accessibility audits, and building design systems. It provides more combined output per call than piecemeal color libraries.

## Known failure modes

- Invalid or malformed color value provided (e.g. out-of-range RGB components) returns an error
- Unsupported color format not recognized by the API
- Network timeout or service unavailability
- Missing required input parameter returns a validation error

## How this service works

Colour converter: hex, RGB, HSL, CMYK and the nearest CSS colour name, plus WCAG contrast ratios against white and black, luminance, and a complementary colour. Design and accessibility helper. $0.01 per colour.

## Output

Returns the input color expressed in all major formats (hex, RGB, HSL, CMYK), the nearest standard CSS named color, WCAG contrast ratios against both white and black backgrounds, the relative luminance value, and the complementary color — all in a single response.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/color-converter-with-wcag-contrast-accessibility-metrics-93126fc8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
