hexcolors

Color combinations / Yellow and Lavender

Yellow and Lavender color combination

These colors sit nearly opposite on the color wheel, so they are complementary and create strong contrast.

Do they work together?

Not for text. The ratio is 1.15: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

Lavender text on yellow

The quick brown fox jumps over the lazy dog.

Yellow text on lavender

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;
--lavender: #e6e6fa;

More with yellow

Common questions

Do yellow and lavender go well together?

These colors sit nearly opposite on the color wheel, so they are complementary and create strong contrast. Not for text. The ratio is 1.15:1, which fails WCAG AA. Use them for shapes and decoration instead, or adjust one color.

What are the hex codes for yellow and lavender?

Yellow is #FFFF00 and Lavender is #E6E6FA.

Can I use yellow text on lavender?

Not for text. The ratio is 1.15:1, which fails WCAG AA. Use them for shapes and decoration instead, or adjust one color.