Colour contrast is the contrast between the background and foreground. This example starts with black text on a light grey and it’s easy to see the difference. As the background gets darker, it becomes more difficult, and in the end impossible to read the text.
Colour contrast tools
There are lots of colour / color contrast checkers on the web. Choose one that works for you.