White Mecca to Mojito Gradient
CSS
background: linear-gradient(90deg, #ecf3e1 0%, #e4f3e0 100%);
From White Mecca (#ECF3E1) to Mojito (#E4F3E0). The two hues are 24° 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 | |
|---|---|---|---|---|---|
| White Mecca | #ECF3E1 | 236, 243, 225 | 83°, 43%, 92% | 3, 0, 7, 5 | |
| 25% (near White Mecca) | #EAF3E1 | 234, 243, 225 | 90°, 43%, 92% | 4, 0, 7, 5 | |
| 50% (near Homoeopathic Lime) | #E8F3E1 | 232, 243, 225 | 97°, 43%, 92% | 5, 0, 7, 5 | |
| 75% (near Mojito) | #E6F3E0 | 230, 243, 224 | 101°, 44%, 92% | 5, 0, 8, 5 | |
| Mojito | #E4F3E0 | 228, 243, 224 | 107°, 44%, 92% | 6, 0, 8, 5 |
Halfway along, the gradient is #E8F3E1, closest to the named color Homoeopathic Lime. 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, #ecf3e1, #e4f3e0) - Diagonal:
linear-gradient(135deg, #ecf3e1, #e4f3e0) - Radial, from the center out:
radial-gradient(circle, #ecf3e1, #e4f3e0) - Tailwind CSS:
bg-gradient-to-r from-[#ecf3e1] to-[#e4f3e0]
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 White Mecca to Mojito gradient?
It starts at #ECF3E1 (White Mecca) and ends at #E4F3E0 (Mojito), with #E8F3E1 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #ecf3e1, #e4f3e0) runs from Mojito on the left to White Mecca on the right.