# GoCreative Color Contrast Lookup

> GoCreative Color Contrast Lookup is a paid API for AI agents from api.gocreativeai.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Calculates the WCAG color contrast ratio between two colors given as an input string

## Facts

- Endpoint: GET https://api.gocreativeai.com/v1/lookup/color_contrast/%7Barg%7D
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gocreative-color-contrast-lookup-ef19c9d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qKbcg7N74lf4IovshW0Do

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 gocreative-color-contrast-lookup-ef19c9d6
```

Example prompt: Can you check the color contrast ratio between #FFFFFF and #336699 to see if it passes WCAG accessibility standards?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call WCAG color contrast ratio check without requiring API key signup. Ideal for automated accessibility audits, CI/CD pipelines checking design tokens, or AI agents verifying UI color compliance on demand.

## Known failure modes

- Invalid color format provided — unrecognized color string returns an error
- Missing input query parameter returns 400 Bad Request
- Malformed hex code or unsupported color name format fails parsing
- Payment failure via x402 results in 402 Payment Required before data is returned

## How this service works

Keyless, pay-per-call compliance &amp; regulated-data API for AI agents — OFAC wallet + sanctions/PEP + KYB screening, SEC filings, FRED economics, FDA recalls, federal awards, plus continuous monitoring. USDC on Base/Solana via x402, native MCP. No API key, no signup.

## Output

Returns a color contrast ratio value (e.g. 4.5:1) along with WCAG AA and AAA pass/fail indicators for the given color pair, helping determine if the combination meets accessibility guidelines.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "endpoint argument"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gocreative-color-contrast-lookup-ef19c9d6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gocreativeai.com](https://www.zero.xyz/host/api.gocreativeai.com/llms.txt)
