API & MCP

Everything a person can do on Color Blindness Palette Simulator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Color Blindness Palette Simulator

Paste 2–24 colors and simulate protanomaly, deuteranomaly and tritanomaly from mild to full dichromacy with the Machado, Oliveira and Fernandes (2009) model. Pairs whose simulated CIEDE2000 difference falls below your threshold are listed, so you can fix chart, map and UI palettes before anyone squints.

Inputs of Color Blindness Palette Simulator
FieldTypeDefaultDescription
colorstextarea"#D62728 #2CA02C #1F77B4 #FF7F0E #9467BD"Palette colors (HEX or CSS colors, one per line or separated by spaces)
typeselect (all, protan, deutan, tritan)"all"Color-vision type
severityinteger100Severity (%; 100 = dichromacy)
thresholdnumber10Confusion threshold (ΔE2000)

Example request

Five classic chart colors

curl -X POST https://luminacvdsimulator.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"colors":"#D62728 #2CA02C #1F77B4 #FF7F0E #9467BD","type":"all","severity":100,"threshold":10}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "lumina-cvd-simulator": { "type": "http", "url": "https://luminacvdsimulator.usefulweb.app/mcp" }
  }
}