# Keyronne Color Parser & WCAG Contrast Checker

> Keyronne Color Parser & WCAG Contrast Checker is a paid API for AI agents from keyronne.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Parses any CSS color format (hex, rgb, hsl), converts between all three, computes relative luminance, checks WCAG AA/AAA contrast ratios against a background, and supports lighten, darken, and color mixing.

## Facts

- Endpoint: POST https://keyronne.com/api/color?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/keyronne-color-parser-wcag-contrast-checker-97f948b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6YgpDt7QrkQAzh5irdpwn

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 keyronne-color-parser-wcag-contrast-checker-97f948b5 -d '<json body>'
```

Example prompt: Check if the text color #3498db on a white background passes WCAG AA and AAA contrast requirements, and also give me the rgb and hsl equivalents of that color.

## When to prefer this

Use this endpoint when building accessible UI themes, checking color contrast compliance with WCAG 2.x, converting between CSS color formats, or programmatically adjusting colors for design systems. Prefer this over general-purpose color libraries when you need WCAG AA/AAA pass-fail verdicts and multi-format conversion in a single API call without running local code.

## Known failure modes

- Invalid or unparseable color string — returns 400 with error message
- Mix color provided without a valid mix weight — may default to 0.5 or return validation error
- Lighten/darken values outside 0-100 range — returns validation error
- Missing required color field — returns 400 bad request
- Background color provided in an unsupported or malformed format — returns parsing error

## How this service works

Parse any CSS color (hex, rgb(), hsl()) and emit all three formats plus relative luminance. Compute WCAG contrast ratios against a background with AA/AAA pass-fail for normal and large text, and lighten, darken, or mix colors. Built for agents generating accessible UI themes. POST a JSON body like: {"color":"#3498db","background":"#ffffff"}

## Output

Returns the parsed color in all three CSS formats (hex, rgb, hsl) plus its relative luminance. If a background color is provided, returns the WCAG contrast ratio and AA/AAA pass-fail results for both normal and large text. If lighten, darken, or mix operations are requested, returns the resulting transformed color(s) in all formats.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mix": {
   "type": "string",
   "description": "Blend the color toward this one."
  },
  "color": {
   "type": "string",
   "description": "A color: \"#3498db\", \"rgb(52,152,219)\", or \"hsl(204,70%,53%)\"."
  },
  "darken": {
   "type": "number",
   "description": "Decrease lightness by this many percent (0-100)."
  },
  "weight": {
   "type": "number",
   "default": 0.5,
   "maximum": 1,
   "minimum": 0,
   "description": "Mix weight toward \"mix\"."
  },
  "lighten": {
   "type": "number",
   "description": "Increase lightness by this many percent (0-100)."
  },
  "background": {
   "type": "string",
   "description": "Optional second color for a WCAG contrast check."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/keyronne-color-parser-wcag-contrast-checker-97f948b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from keyronne.com](https://www.zero.xyz/host/keyronne.com/llms.txt)
