Myrtle to Zucchini Gradient
CSS
background: linear-gradient(90deg, #21421e 0%, #17462e 100%);
From Myrtle (#21421E) to Zucchini (#17462E). 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 | |
|---|---|---|---|---|---|
| Myrtle | #21421E | 33, 66, 30 | 115°, 38%, 19% | 50, 0, 55, 74 | |
| 25% (near Myrtle) | #1F4322 | 31, 67, 34 | 125°, 37%, 19% | 54, 0, 49, 74 | |
| 50% (near Queen of Trees) | #1C4426 | 28, 68, 38 | 135°, 42%, 19% | 59, 0, 44, 73 | |
| 75% (near Zucchini) | #1A452A | 26, 69, 42 | 142°, 45%, 19% | 62, 0, 39, 73 | |
| Zucchini | #17462E | 23, 70, 46 | 149°, 51%, 18% | 67, 0, 34, 73 |
Halfway along, the gradient is #1C4426, closest to the named color Queen of Trees. The stops are mixed in RGB, the way browsers draw a linear gradient by default.
Text on this gradient
White 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, #21421e, #17462e) - Diagonal:
linear-gradient(135deg, #21421e, #17462e) - Radial, from the center out:
radial-gradient(circle, #21421e, #17462e) - Tailwind CSS:
bg-gradient-to-r from-[#21421e] to-[#17462e]
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 Myrtle to Zucchini gradient?
It starts at #21421E (Myrtle) and ends at #17462E (Zucchini), with #1C4426 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #21421e, #17462e) runs from Zucchini on the left to Myrtle on the right.