Huebook

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

NameHEXRGBHSLCMYK
Myrtle#21421E33, 66, 30115°, 38%, 19%50, 0, 55, 74
25% (near Myrtle)#1F432231, 67, 34125°, 37%, 19%54, 0, 49, 74
50% (near Queen of Trees)#1C442628, 68, 38135°, 42%, 19%59, 0, 44, 73
75% (near Zucchini)#1A452A26, 69, 42142°, 45%, 19%62, 0, 39, 73
Zucchini#17462E23, 70, 46149°, 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

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.