Traffic Yellow to Green Yellow Gradient
CSS
background: linear-gradient(90deg, #fedc39 0%, #adff2f 100%);
From Traffic Yellow (#FEDC39) to Green Yellow (#ADFF2F). The two hues are 34° apart on the color wheel, close enough that the blend stays clean without a muddy middle.
Colors along the gradient
| Name | HEX | RGB | HSL | CMYK | OKLCH | |
|---|---|---|---|---|---|---|
| Traffic Yellow | #FEDC39 | 254, 220, 57 | 50°, 99%, 61% | 0, 13, 78, 0 | 89.7% 0.170 97 | |
| 25% (near Golden Fizz) | #EAE537 | 234, 229, 55 | 58°, 81%, 57% | 0, 2, 76, 8 | 89.8% 0.179 108 | |
| 50% (near Lime Fizz) | #D6EE34 | 214, 238, 52 | 68°, 85%, 57% | 10, 0, 78, 7 | 90.1% 0.195 117 | |
| 75% (near Pick Your Poison) | #C1F632 | 193, 246, 50 | 76°, 92%, 58% | 22, 0, 80, 4 | 90.4% 0.213 125 | |
| Green Yellow | #ADFF2F | 173, 255, 47 | 84°, 100%, 59% | 32, 0, 82, 0 | 91.3% 0.233 130 |
Halfway along, the gradient is #D6EE34, closest to the named color Lime Fizz. The stops are mixed in RGB, the way browsers draw a linear gradient by default.
Text on this gradient
Black text reads best on both ends, so one text color works across the whole gradient. The two end colors have a contrast ratio of 1.10:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #fedc39, #adff2f) - Diagonal:
linear-gradient(135deg, #fedc39, #adff2f) - Radial, from the center out:
radial-gradient(circle, #fedc39, #adff2f) - Tailwind CSS:
bg-gradient-to-r from-[#fedc39] to-[#adff2f]
Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.
Related gradients
Questions
What are the HEX codes of the Traffic Yellow to Green Yellow gradient?
It starts at #FEDC39 (Traffic Yellow) and ends at #ADFF2F (Green Yellow), with #D6EE34 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #fedc39, #adff2f) runs from Green Yellow on the left to Traffic Yellow on the right.