Bat-Signal to Chartreuse (CSS) Gradient
CSS
background: linear-gradient(90deg, #feff00 0%, #7fff00 100%);
From Bat-Signal (#FEFF00) to Chartreuse (CSS) (#7FFF00). The two hues are 30° 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 | |
|---|---|---|---|---|---|---|
| Bat-Signal | #FEFF00 | 254, 255, 0 | 60°, 100%, 50% | 0, 0, 100, 0 | 96.7% 0.211 110 | |
| 25% (near Lime Zest) | #DEFF00 | 222, 255, 0 | 68°, 100%, 50% | 13, 0, 100, 0 | 94.3% 0.221 119 | |
| 50% (near Limoncello) | #BFFF00 | 191, 255, 0 | 75°, 100%, 50% | 25, 0, 100, 0 | 92.2% 0.234 126 | |
| 75% (near Spring Bud) | #9FFF00 | 159, 255, 0 | 83°, 100%, 50% | 38, 0, 100, 0 | 90.5% 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 #BFFF00, 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, #feff00, #7fff00) - Diagonal:
linear-gradient(135deg, #feff00, #7fff00) - Radial, from the center out:
radial-gradient(circle, #feff00, #7fff00) - Tailwind CSS:
bg-gradient-to-r from-[#feff00] 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 Bat-Signal to Chartreuse (CSS) gradient?
It starts at #FEFF00 (Bat-Signal) and ends at #7FFF00 (Chartreuse (CSS)), with #BFFF00 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #feff00, #7fff00) runs from Chartreuse (CSS) on the left to Bat-Signal on the right.