Material Palette a11y Helper

Should I use black or white text on a colorful background?

red
pink
purple
deeppurple
indigo
blue
lightblue
cyan
teal
green
lightgreen
lime
yellow
amber
orange
deeporange
brown
grey
bluegrey