I generally like picking certain contrasting colors
Black and white are obvious ofc
I like to make it so that the shadow / outline is the color that contrasts with the background, and the fill in for lettering is the same color
As for background it will be in most images to use, so its a matter of looking for ones with the right colors if we following a scheme