One measure of contrast between text and background colours is given by a formula.
colour brightness=(red*299+green*587+blue*114)/1000
The W3C in its WCAG guides approve of this formula.
Values between text and background colours above 125 are considered good.
In the calculator below enter uppercase only)