Lightning Bug to Cucumber Milk Gradient
CSS
background: linear-gradient(90deg, #efde74 0%, #c2f177 100%);
From Lightning Bug (#EFDE74) to Cucumber Milk (#C2F177). The two hues are 31° 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 | |
|---|---|---|---|---|---|
| Lightning Bug | #EFDE74 | 239, 222, 116 | 52°, 79%, 70% | 0, 7, 51, 6 | |
| 25% (near Delicate Lemon) | #E4E375 | 228, 227, 117 | 59°, 67%, 68% | 0, 0, 49, 11 | |
| 50% (near Mindaro) | #D9E876 | 217, 232, 118 | 68°, 71%, 69% | 6, 0, 49, 9 | |
| 75% (near Venomous Sting) | #CDEC76 | 205, 236, 118 | 76°, 76%, 69% | 13, 0, 50, 7 | |
| Cucumber Milk | #C2F177 | 194, 241, 119 | 83°, 81%, 71% | 20, 0, 51, 5 |
Halfway along, the gradient is #D9E876, closest to the named color Mindaro. 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.05:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #efde74, #c2f177) - Diagonal:
linear-gradient(135deg, #efde74, #c2f177) - Radial, from the center out:
radial-gradient(circle, #efde74, #c2f177) - Tailwind CSS:
bg-gradient-to-r from-[#efde74] to-[#c2f177]
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 Lightning Bug to Cucumber Milk gradient?
It starts at #EFDE74 (Lightning Bug) and ends at #C2F177 (Cucumber Milk), with #D9E876 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #efde74, #c2f177) runs from Cucumber Milk on the left to Lightning Bug on the right.