Color Blindness Simulator
See an image or a palette as people with a color vision deficiency do (deutan, protan, tritan, achromatopsia), and the colors they can't tell apart, without uploading it
The eye has three kinds of cones, for long (red), medium (green) and short (blue) wavelengths. In a color vision deficiency one of them is shifted toward another, or missing: reds and greens are confused when it's the long or medium one, blues and yellows when it's the short one. Each pixel goes through the matrix of Machado, Oliveira and Fernandes' model (2009), for the vision and its severity, on its linear light (the image's sRGB decoded first). Achromatopsia keeps the luminance alone.
It shows which colors fall together, not exactly what a given person sees: the severity varies from one person to the next, and the model is less precise for tritans. Don't rely on color alone: a label, a pattern or a difference in lightness keeps a chart readable for everyone.