Color combinations / Yellow and Gray
Yellow 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.68: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
--yellow: #ffff00; --gray: #808080;
More with yellow
Common questions
Do yellow 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.68:1, which passes AA for large text and graphics but not for body text.
What are the hex codes for yellow and gray?
Yellow is #FFFF00 and Gray is #808080.
Can I use yellow text on gray?
Only for large text. The ratio is 3.68:1, which passes AA for large text and graphics but not for body text.