# MoneyTools Color Converter + WCAG Contrast Checker

> MoneyTools Color Converter + WCAG Contrast Checker is a paid API for AI agents from tools.moneytools.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-05).

Converts a color (hex/RGB/HSL/CSS name) to all major color formats and computes luminance, best readable text color, and WCAG AA/AAA contrast ratio against a second color.

## Facts

- Endpoint: GET https://tools.moneytools.dev/v1/color?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-05
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/moneytools-color-converter-wcag-contrast-checker-aaa84f97
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cZ6F1I-j7mduRDyUH2X8y

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 moneytools-color-converter-wcag-contrast-checker-aaa84f97
```

Example prompt: Can you convert #1a73e8 to RGB, HSL, and CMYK, and check whether it passes WCAG AA and AAA contrast standards against white (#ffffff)?

## When to prefer this

Choose this endpoint when you need color format conversion (hex↔RGB↔HSL↔CMYK) combined with WCAG accessibility analysis in a single call, especially in automated design pipelines, accessibility audits, or agent workflows that need to validate UI color choices. It's particularly useful when you need luminance and best-text-color recommendations without running a full design tool. The x402 micropayment model makes it viable for low-volume or one-off agent calls without subscription overhead.

## Known failure modes

- Invalid or unrecognized color string returns an error — unparseable inputs like malformed hex or unknown CSS names
- Missing required 'color' query parameter returns a validation error
- Free tier exhausted (10 calls/day) without payment method triggers HTTP 402 requiring x402 micropayment or API key
- Network or service downtime returns 5xx; no charge on failure

## How this service works

Color converter + WCAG contrast: Convert hex/rgb/hsl/CSS names to hex, RGB, HSL, CMYK; luminance, best text color and WCAG AA/AAA contrast against another color. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.

## Output

A JSON object containing the input color expressed in hex, RGB, HSL, and CMYK formats; its relative luminance; the recommended best-contrast text color (black or white); and WCAG AA and AAA pass/fail results plus numeric contrast ratio against the optional second color. Also includes payment metadata indicating whether a charge was applied, the network, and the transaction reference.

## 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": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "color"
     ],
     "properties": {
      "color": {
       "type": "string",
       "examples": [
        "#1a73e8"
       ],
       "description": "color"
      },
      "against": {
       "type": "string",
       "examples": [
        "#ffffff"
       ],
       "description": "second color"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "properties": {
      "payment": {
       "type": "object",
       "properties": {
        "charged": {
         "type": "boolean"
        },
        "network": {
         "type": "string"
        },
        "amountUsd": {
         "type": "string"
        },
        "transaction": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "freeTier": {
       "type": "object"
      },
      "_moneytools": {
       "type": "object",
       "description": "optional plan / partner hints"
      }
     },
     "description": "Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/moneytools-color-converter-wcag-contrast-checker-aaa84f97/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.moneytools.dev](https://www.zero.xyz/host/tools.moneytools.dev/llms.txt)
