Open jack89roberts opened 4 years ago
The function for selecting whether black or white text should be used over a background colour seems to work well in almost all cases, with one key exception being pure green where white is suggested but black would work better (in my opinion).
See updated comment in https://stackoverflow.com/a/3943023 (first equation is what's used in distinctipy) about the W3C recommendation for this.
distinctipy
The function for selecting whether black or white text should be used over a background colour seems to work well in almost all cases, with one key exception being pure green where white is suggested but black would work better (in my opinion).