Grass to Try Your Luck Gradient
CSS
background: linear-gradient(90deg, #5cac2d 0%, #34b334 100%);
From Grass (#5CAC2D) to Try Your Luck (#34B334). The two hues are 22° 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 | #5CAC2D | 92, 172, 45 | 98°, 59%, 43% | 47, 0, 74, 33 | |
| 25% (near Grass) | #52AE2F | 82, 174, 47 | 103°, 57%, 43% | 53, 0, 73, 32 | |
| 50% (near Exit Light) | #48B031 | 72, 176, 49 | 109°, 56%, 44% | 59, 0, 72, 31 | |
| 75% (near Try Your Luck) | #3EB132 | 62, 177, 50 | 114°, 56%, 45% | 65, 0, 72, 31 | |
| Try Your Luck | #34B334 | 52, 179, 52 | 120°, 55%, 45% | 71, 0, 71, 30 |
Halfway along, the gradient is #48B031, closest to the named color Exit Light. 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.03:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #5cac2d, #34b334) - Diagonal:
linear-gradient(135deg, #5cac2d, #34b334) - Radial, from the center out:
radial-gradient(circle, #5cac2d, #34b334) - Tailwind CSS:
bg-gradient-to-r from-[#5cac2d] 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 Grass to Try Your Luck gradient?
It starts at #5CAC2D (Grass) and ends at #34B334 (Try Your Luck), with #48B031 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #5cac2d, #34b334) runs from Try Your Luck on the left to Grass on the right.