# Color Blindness Simulator

> Color Blindness Simulator is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Simulates how a color appears to viewers with protanopia, deuteranopia, or tritanopia, returning the simulated RGB value and optional contrast ratio against a second color.

## Facts

- Endpoint: POST https://agent402.tools/api/color-blindness
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/color-blindness-simulator-3c0f2953
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5HuswGe4d29Fah3yY6Dgx

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-blindness-simulator-3c0f2953 -d '<json body>'
```

Example prompt: Simulate how the color #E63946 appears to someone with protanopia, and also compare it against #457B9D so I can see the contrast ratio between the two as a color-blind viewer would experience it.

## When to prefer this

Use this endpoint when you need to simulate how specific colors appear to users with one of the three dichromacy types (protanopia, deuteranopia, tritanopia) and optionally compute contrast ratios between a color pair as perceived by color-blind viewers — ideal for accessibility audits and UI/UX design validation.

## Known failure modes

- Invalid color string format returns an error
- Unsupported color blindness type not recognized
- Missing required color field returns validation error
- Payment not attached or insufficient USDC returns 402

## How this service works

Simulate how a color appears to viewers with protanopia (red-blind), deuteranopia (green-blind), or tritanopia (blue-blind) — the three dichromacy types covering ~8% of men and ~0.5% of women. Returns the simulated RGB plus the contrast ratio agai...

## Output

Returns the simulated RGB color value for the given color as perceived under the specified dichromacy type (protanopia, deuteranopia, or tritanopia), and if a second color is provided, also returns the simulated RGB for that color and the contrast ratio between the two simulated colors.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "color": {
   "type": "string",
   "description": "Color to simulate."
  },
  "compareTo": {
   "type": "string",
   "description": "Optional second color - both are simulated and the contrast ratio between the simulated pair is included."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "input": "#1d4ed8",
  "compareTo": "#22c55e",
  "simulations": {
   "protanopia": {
    "hex": "#3f3fcb",
    "originalContrast": 1.93,
    "simulatedContrast": 5.42
   },
   "tritanopia": {
    "hex": "#2050a4",
    "originalContrast": 1.93,
    "simulatedContrast": 1.41
   },
   "deuteranopia": {
    "hex": "#494bcb",
    "originalContrast": 1.93,
    "simulatedContrast": 4.12
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/color-blindness-simulator-3c0f2953/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
