Electric Banana to Chartreuse (CSS) Gradient
CSS
background: linear-gradient(90deg, #fbff00 0%, #7fff00 100%);
From Electric Banana (#FBFF00) to Chartreuse (CSS) (#7FFF00). The two hues are 29° 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 | |
|---|---|---|---|---|---|---|
| Electric Banana | #FBFF00 | 251, 255, 0 | 61°, 100%, 50% | 2, 0, 100, 0 | 96.5% 0.212 111 | |
| 25% (near Lime Zest) | #DCFF00 | 220, 255, 0 | 68°, 100%, 50% | 14, 0, 100, 0 | 94.2% 0.222 119 | |
| 50% (near Limoncello) | #BDFF00 | 189, 255, 0 | 76°, 100%, 50% | 26, 0, 100, 0 | 92.1% 0.235 126 | |
| 75% (near Spring Bud) | #9EFF00 | 158, 255, 0 | 83°, 100%, 50% | 38, 0, 100, 0 | 90.4% 0.250 132 | |
| Chartreuse (CSS) | #7FFF00 | 127, 255, 0 | 90°, 100%, 50% | 50, 0, 100, 0 | 89.0% 0.265 136 |
Halfway along, the gradient is #BDFF00, closest to the named color Limoncello. 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.20:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #fbff00, #7fff00) - Diagonal:
linear-gradient(135deg, #fbff00, #7fff00) - Radial, from the center out:
radial-gradient(circle, #fbff00, #7fff00) - Tailwind CSS:
bg-gradient-to-r from-[#fbff00] to-[#7fff00]
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 Electric Banana to Chartreuse (CSS) gradient?
It starts at #FBFF00 (Electric Banana) and ends at #7FFF00 (Chartreuse (CSS)), with #BDFF00 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #fbff00, #7fff00) runs from Chartreuse (CSS) on the left to Electric Banana on the right.