Grass Is Greener to Emerald Gradient
CSS
background: linear-gradient(90deg, #3f9b0b 0%, #028f1e 100%);
From Grass Is Greener (#3F9B0B) to Emerald (#028F1E). 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 | |
|---|---|---|---|---|---|
| Grass Is Greener | #3F9B0B | 63, 155, 11 | 98°, 87%, 33% | 59, 0, 93, 39 | |
| 25% (near Sacro Bosco) | #309810 | 48, 152, 16 | 106°, 81%, 33% | 68, 0, 89, 40 | |
| 50% (near Sacro Bosco) | #219515 | 33, 149, 21 | 114°, 75%, 33% | 78, 0, 86, 42 | |
| 75% (near Pestering Pesto) | #119219 | 17, 146, 25 | 124°, 79%, 32% | 88, 0, 83, 43 | |
| Emerald | #028F1E | 2, 143, 30 | 132°, 97%, 28% | 99, 0, 79, 44 |
Halfway along, the gradient is #219515, closest to the named color Sacro Bosco. 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.19:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #3f9b0b, #028f1e) - Diagonal:
linear-gradient(135deg, #3f9b0b, #028f1e) - Radial, from the center out:
radial-gradient(circle, #3f9b0b, #028f1e) - Tailwind CSS:
bg-gradient-to-r from-[#3f9b0b] to-[#028f1e]
Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.
Questions
What are the HEX codes of the Grass Is Greener to Emerald gradient?
It starts at #3F9B0B (Grass Is Greener) and ends at #028F1E (Emerald), with #219515 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #3f9b0b, #028f1e) runs from Emerald on the left to Grass Is Greener on the right.