Design
Color-blindness simulation API
Simulates how a color appears under 7 color-vision deficiencies (protan/deutan/tritan -opia & -omaly, achromatopsia) via Viénot/Brettel LMS matrices; pass a type for one or omit for all. Answers 'How does this color look to a color-blind user?', 'Simulate deuteranopia for this color.'
Price$0.06per request
MethodPOST
Route/v1/design/color-blind-simulate
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
accessibilitycolor-blindnesscvdprotanopiadeuteranopiatritanopiasimulatea11ycolordesign
API URL
Integration docshttps://x402.hexl.dev/v1/design/color-blind-simulateExample request
{
"color": "#ff6347",
"type": "deuteranopia"
}Example response
{
"input": "#ff6347",
"original": {
"hex": "#ff6347",
"rgb": {
"r": 255,
"g": 99,
"b": 71
},
"hsl": {
"h": 9.13,
"s": 100,
"l": 63.92
}
},
"type": "deuteranopia",
"simulated": {
"hex": "#c5d04f",
"rgb": {
"r": 197,
"g": 208,
"b": 79
},
"hsl": {
"h": 65.12,
"s": 57.85,
"l": 56.27
}
}
}Input schema
{
"type": "object",
"required": [
"color"
],
"properties": {
"color": {
"type": "string",
"examples": [
"#ff6347"
]
},
"type": {
"type": "string",
"enum": [
"protanopia",
"protanomaly",
"deuteranopia",
"deuteranomaly",
"tritanopia",
"tritanomaly",
"achromatopsia"
],
"examples": [
"deuteranopia"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}