Color combinations / Yellow and White
Yellow and White color combination
One of the two is a neutral, which makes this an easy, safe pairing.
Do they work together?
Not for text. The ratio is 1.07:1, which fails WCAG AA. Use them for shapes and decoration instead, or adjust one color.
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; --white: #ffffff;
More with yellow
Common questions
Do yellow and white go well together?
One of the two is a neutral, which makes this an easy, safe pairing. Not for text. The ratio is 1.07:1, which fails WCAG AA. Use them for shapes and decoration instead, or adjust one color.
What are the hex codes for yellow and white?
Yellow is #FFFF00 and White is #FFFFFF.
Can I use yellow text on white?
Not for text. The ratio is 1.07:1, which fails WCAG AA. Use them for shapes and decoration instead, or adjust one color.