# Saylor Innovations WCAG Color Contrast Checker

> Saylor Innovations WCAG Color Contrast Checker is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Calculates the WCAG 2.x contrast ratio between a foreground and background color, returning pass/fail results for AA and AAA levels across normal text, large text, and UI components.

## Facts

- Endpoint: GET https://saylorinnovations.com/api/color/contrast?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-wcag-color-contrast-checker-ff6e36f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uhWZwxWjDtFUkRJ-XCxPr

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 saylor-innovations-wcag-color-contrast-checker-ff6e36f6
```

Example prompt: Check if white text (#ffffff) on a navy background (#003366) passes WCAG AA and AAA contrast requirements for both normal and large text.

## When to prefer this

Use this endpoint when you need a lightweight, fast, pay-per-call WCAG 2.x contrast ratio check with explicit AA and AAA pass/fail verdicts for all text sizes and UI components — ideal for automated accessibility pipelines, CI checks, or design tool integrations without needing a full accessibility audit service.

## Known failure modes

- Missing or malformed hex codes (e.g. omitting the # or using invalid color values) may return an error or unexpected results
- Providing color names instead of hex codes may not be supported
- If both fg and bg params are omitted the API may return an error or default result

## How this service works

WCAG Color Contrast Checker — Design

## Output

Returns a numeric contrast ratio (e.g. 4.5:1) and a WCAG compliance object with pass/fail verdicts for AA and AAA levels across normal text, large text, and UI component categories, per WCAG 2.x standards.

## 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",
      "POST",
      "PUT",
      "PATCH",
      "DELETE",
      "HEAD"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "bg": {
       "type": "string",
       "description": "background hex (query)"
      },
      "fg": {
       "type": "string",
       "description": "foreground hex (query)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "contrast_ratio",
      "wcag"
     ],
     "properties": {
      "wcag": {
       "type": "object"
      },
      "contrast_ratio": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

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