# Color Blind Simulation for Hex Colors

> Color Blind Simulation for Hex Colors is a paid API for AI agents from color-design.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Simulates protanopia, deuteranopia, and tritanopia color blindness on a hex color or a foreground/background pair, returning the transformed colors and remaining contrast ratios.

## Facts

- Endpoint: GET https://color-design.x402tookit.com/color-blind-sim?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/color-blind-simulation-for-hex-colors-a1e09667
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q4ufCx_Ihq5ILwfK0LXZU

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-blind-simulation-for-hex-colors-a1e09667
```

Example prompt: Simulate how color blind users would see my text color #E63946 on a white background #FFFFFF — show me the transformed hex values and contrast ratios for protanopia, deuteranopia, and tritanopia.

## When to prefer this

Use this endpoint when you need to evaluate how a specific hex color or color pair appears under the three major types of color blindness (protanopia, deuteranopia, tritanopia) and want quantified contrast ratios — particularly useful for UI accessibility audits, brand color vetting, or WCAG compliance workflows. Prefer this over generic accessibility checkers when you need the simulated hex values themselves (not just a pass/fail), or when you need all three color blindness types evaluated in a single call.

## Known failure modes

- Missing required 'color' query parameter returns an error
- Invalid hex format (e.g. missing '#', wrong length) may cause a parsing error or unexpected results
- Background parameter provided without '#' prefix may fail validation
- Network or payment failure returns a 402 or 5xx error

## How this service works

Simulate protanopia, deuteranopia and tritanopia on a color, or on a text/background pair with the contrast that remains.

## Output

Returns an object with the original color and background, simulated hex colors for protanopia, deuteranopia, and tritanopia, the contrast ratio for each simulation and for normal vision, a verdict or summary on accessibility, and any disclaimer or reasons if checks could not be completed.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "color"
     ],
     "properties": {
      "color": {
       "type": "string",
       "description": "Hex color (or the foreground of a pair)"
      },
      "background": {
       "type": "string",
       "description": "Optional background hex to check the pair's contrast"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "original": {
       "type": [
        "null",
        "string"
       ]
      },
      "background": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "simulations": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "protanopia": {
         "type": [
          "null",
          "object"
         ],
         "properties": {
          "color": {
           "type": [
            "null",
            "string"
           ]
          },
          "contrast": {
           "type": [
            "null",
            "number"
           ]
          },
          "background": {
           "type": [
            "null",
            "string"
           
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/color-blind-simulation-for-hex-colors-a1e09667/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from color-design.x402tookit.com](https://www.zero.xyz/host/color-design.x402tookit.com/llms.txt)
