Full Moon to White Mecca Gradient
CSS
background: linear-gradient(90deg, #f4f3e0 0%, #ecf3e1 100%);
From Full Moon (#F4F3E0) to White Mecca (#ECF3E1). The two hues are 26° 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 | |
|---|---|---|---|---|---|
| Full Moon | #F4F3E0 | 244, 243, 224 | 57°, 48%, 92% | 0, 0, 8, 4 | |
| 25% (near Full Moon) | #F2F3E0 | 242, 243, 224 | 63°, 44%, 92% | 0, 0, 8, 5 | |
| 50% (near White Mecca) | #F0F3E1 | 240, 243, 225 | 70°, 43%, 92% | 1, 0, 7, 5 | |
| 75% (near White Mecca) | #EEF3E1 | 238, 243, 225 | 77°, 43%, 92% | 2, 0, 7, 5 | |
| White Mecca | #ECF3E1 | 236, 243, 225 | 83°, 43%, 92% | 3, 0, 7, 5 |
Halfway along, the gradient is #F0F3E1, closest to the named color White Mecca. 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.01:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #f4f3e0, #ecf3e1) - Diagonal:
linear-gradient(135deg, #f4f3e0, #ecf3e1) - Radial, from the center out:
radial-gradient(circle, #f4f3e0, #ecf3e1) - Tailwind CSS:
bg-gradient-to-r from-[#f4f3e0] to-[#ecf3e1]
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 Full Moon to White Mecca gradient?
It starts at #F4F3E0 (Full Moon) and ends at #ECF3E1 (White Mecca), with #F0F3E1 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #f4f3e0, #ecf3e1) runs from White Mecca on the left to Full Moon on the right.