Color combinations / White and Gray
White and Gray color combination
One of the two is a neutral, which makes this an easy, safe pairing.
Do they work together?
Only for large text. The ratio is 3.95:1, which passes AA for large text and graphics but not for body text.
Contrast is the same in both directions. Check other pairs in the contrast checker.
See it in use
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
Make the pair accessible
Keep the hue and adjust lightness until body text passes 4.5:1.
Copy the colors
--white: #ffffff; --gray: #808080;
More with white
Common questions
Do white and gray go well together?
One of the two is a neutral, which makes this an easy, safe pairing. Only for large text. The ratio is 3.95:1, which passes AA for large text and graphics but not for body text.
What are the hex codes for white and gray?
White is #FFFFFF and Gray is #808080.
Can I use white text on gray?
Only for large text. The ratio is 3.95:1, which passes AA for large text and graphics but not for body text.