Cocoloco to Cardamom Gradient
CSS
background: linear-gradient(90deg, #aa8f7a 0%, #aaaa77 100%);
From Cocoloco (#AA8F7A) to Cardamom (#AAAA77). 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 | |
|---|---|---|---|---|---|
| Cocoloco | #AA8F7A | 170, 143, 122 | 26°, 22%, 57% | 0, 16, 28, 33 | |
| 25% (near Saddle Up) | #AA9679 | 170, 150, 121 | 36°, 22%, 57% | 0, 12, 29, 33 | |
| 50% (near Mohalla) | #AA9D79 | 170, 157, 121 | 44°, 22%, 57% | 0, 8, 29, 33 | |
| 75% (near Olive Tree) | #AAA378 | 170, 163, 120 | 52°, 23%, 57% | 0, 4, 29, 33 | |
| Cardamom | #AAAA77 | 170, 170, 119 | 60°, 23%, 57% | 0, 0, 30, 33 |
Halfway along, the gradient is #AA9D79, closest to the named color Mohalla. 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.26:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #aa8f7a, #aaaa77) - Diagonal:
linear-gradient(135deg, #aa8f7a, #aaaa77) - Radial, from the center out:
radial-gradient(circle, #aa8f7a, #aaaa77) - Tailwind CSS:
bg-gradient-to-r from-[#aa8f7a] to-[#aaaa77]
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 Cocoloco to Cardamom gradient?
It starts at #AA8F7A (Cocoloco) and ends at #AAAA77 (Cardamom), with #AA9D79 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #aa8f7a, #aaaa77) runs from Cardamom on the left to Cocoloco on the right.