Whether text is easy to read on its background can be measured with a number: the contrast ratio.
Criteria at a glance
Normal text — AA 4.5:1 · AAA 7:1
Large text (18pt, or 14pt bold) — AA 3:1 · AAA 4.5:1
UI elements such as icons and input borders — 3:1
Pairs that often fail
Light grey text on white, white text on yellow and text over photos are the usual culprits. Make grey text darker than #6b7280, and add a translucent dark band behind text on photos.
Keep the hue, change the lightness
To keep your brand color, leave the hue and change only lightness. COI's “Contrast Checker” suggests the closest lightness that passes.