(I realize this doesn't really answer the question, which is an interesting one. Just suggesting it may be solving the wrong problem.)
Yet that's not really an answer for how to optimize for color blindness. That I don't know and would be interested in an answer.
If high contrast between colours is desired, you could take some further precautions in some of the suggested algorithms, e.g. if you're choosing certain hues as a basis of your palette, then making sure that none of the pairs are problematic. If your algorithm checks the distance between colours to generate high-contrast pairs, then you could add in a check for problematic pairs as part of that step.
How do you know that? How do you know you are looking to equivalent distributions of lighter and darker magentas?
I have some uncommon kind of color blindness, I have problems with blue and green. I don't even know what colors I can't see, I'd love to know the procedures for that.
I didn't understand that. Thanks.