2

This question already has an answer here:

For example, if I had a dark blue or black background choosing white text will make it stand-out and more readable.

If I had a white or off-white background, black text will stand-out and be readable.

What do I do if the background color is neither dark enough for white to show well nor light enough for black to show well?

marked as duplicate by Zach Saucier, Cai, Hanna, Vincent Mar 29 '16 at 15:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3

What you are looking for is contrast

In order to measure contrast there are a lot of ways, I personally use this website. It grades the contrast between colors, and I personally found that grade 5 and above is a pretty good contrast for type and its background

Not the answer you're looking for? Browse other questions tagged or ask your own question.