Color Blindness Simulator API
Simulate how a list of colours looks with each colour vision deficiency (Machado 2009 model) and flag pairs that become hard to tell apart for one chosen type. Colours only, not images.
POST /api/v1/tools/color-blindness-simulatorMCP color_blindness_simulatorDesign & ColourSee your colour palette as people with protanopia, deuteranopia, tritanopia, weaker anomalies or achromatopsia do, and spot colours that become hard to tell apart.
Input
Send these as a JSON object. Unknown fields are rejected.
- colors
- 1 to 12 colours, one per line or separated by commas/spaces: hex, rgb(), hsl() or CSS names. (string, up to 2000 characters, required)
- type
- Deficiency used for the 'hard to tell apart' check. (string, one of protanopia, deuteranopia, tritanopia, protanomaly, deuteranomaly, tritanomaly, achromatopsia, default "deuteranopia")
- severity
- Severity for the -anomaly types, 0 to 1 (dichromacy types always use 1). (number, 0 to 1, default 1)
- threshold
- ΔE OK below which two simulated colours count as hard to tell apart. (number, 0.001 to 1, default 0.05)
curl https://pithlab.com/api/v1/tools/color-blindness-simulator \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"colors":"#d62728, #2ca02c, #1f77b4","type":"deuteranopia"}'