hexcolors

Color combinations / Yellow and Green

Yellow and Green color combination

These colors are a moderate distance apart on the wheel, giving a balanced but distinct pairing.

Do they work together?

Yes. Yellow and Green have a contrast ratio of 4.78:1, which passes WCAG AA for body text.

Contrast is the same in both directions. Check other pairs in the contrast checker.

See it in use

Green text on yellow

The quick brown fox jumps over the lazy dog.

Yellow text on green

The quick brown fox jumps over the lazy dog.

Copy the colors

--yellow: #ffff00;
--green: #008000;

More with yellow

Common questions

Do yellow and green go well together?

These colors are a moderate distance apart on the wheel, giving a balanced but distinct pairing. Yes. Yellow and Green have a contrast ratio of 4.78:1, which passes WCAG AA for body text.

What are the hex codes for yellow and green?

Yellow is #FFFF00 and Green is #008000.

Can I use yellow text on green?

Yes. Yellow and Green have a contrast ratio of 4.78:1, which passes WCAG AA for body text.