Leaf to Try Your Luck Gradient
CSS
background: linear-gradient(90deg, #71aa34 0%, #34b334 100%);
From Leaf (#71AA34) to Try Your Luck (#34B334). 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 | |
|---|---|---|---|---|---|
| Leaf | #71AA34 | 113, 170, 52 | 89°, 53%, 44% | 34, 0, 69, 33 | |
| 25% (near Grass) | #62AC34 | 98, 172, 52 | 97°, 54%, 44% | 43, 0, 70, 33 | |
| 50% (near Grass) | #53AF34 | 83, 175, 52 | 105°, 54%, 45% | 53, 0, 70, 31 | |
| 75% (near Try Your Luck) | #43B134 | 67, 177, 52 | 113°, 55%, 45% | 62, 0, 71, 31 | |
| Try Your Luck | #34B334 | 52, 179, 52 | 120°, 55%, 45% | 71, 0, 71, 30 |
Halfway along, the gradient is #53AF34, closest to the named color Grass. 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.02:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #71aa34, #34b334) - Diagonal:
linear-gradient(135deg, #71aa34, #34b334) - Radial, from the center out:
radial-gradient(circle, #71aa34, #34b334) - Tailwind CSS:
bg-gradient-to-r from-[#71aa34] to-[#34b334]
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 Leaf to Try Your Luck gradient?
It starts at #71AA34 (Leaf) and ends at #34B334 (Try Your Luck), with #53AF34 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #71aa34, #34b334) runs from Try Your Luck on the left to Leaf on the right.