From Dev.to
How to generate an accessible color palette from a single color
To get an accessible palette out of a single color, what worked for me was deciding first how much contrast each step of the scale has to have against the background, and only then computing the color...
