About
Hue Blind converts normal colors into simulated versions as perceived by users with Protanopia, Deuteranopia, and Tritanopia.
Built with Go, it helps developers test websites and apps for color accessibility.
Developed by: Sahil Deo
GitHub |
LinkedIn
Usage
Endpoint: GET https://blind-hue.onrender.com/api?color=<hex1>&color=<hex2>...
Parameters:
color— One or more hex colors (e.g.,#FF0000)
Response is JSON containing simulated color mappings.
Examples
Request:
GET https://blind-hue.onrender.com/api?color=%23FF0000&color=%2300FF00
Note: When using raw URLs, use %23 instead of #. Most HTTP libraries in JS/Python handle this automatically.
Response:
{
"colors": {
"protanopia": {
"#FF0000": "#900000",
"#00FF00": "#7FBF7F"
},
"deuteranopia": {
"#FF0000": "#A00000",
"#00FF00": "#7F997F"
},
"tritanopia": {
"#FF0000": "#F20000",
"#00FF00": "#6F9F9F"
}
}
}
References
- Brettel, Viénot and Mollon. (1997). Computerized simulation of color appearance for dichromats.
- Lokno. (2015). Color Blindness Simulation Matrices (Protanopia, Deuteranopia, Tritanopia). GitHub Gist. https://gist.github.com/Lokno/df7c3bfdc9ad32558bb7