Au Clair de la Lune to White Mecca Gradient
CSS
background: linear-gradient(90deg, #f4f2e2 0%, #ecf3e1 100%);
From Au Clair de la Lune (#F4F2E2) to White Mecca (#ECF3E1). The two hues are 30° 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 | |
|---|---|---|---|---|---|
| Au Clair de la Lune | #F4F2E2 | 244, 242, 226 | 53°, 45%, 92% | 0, 1, 7, 4 | |
| 25% (near Au Clair de la Lune) | #F2F2E2 | 242, 242, 226 | 60°, 38%, 92% | 0, 0, 7, 5 | |
| 50% (near Au Clair de la Lune) | #F0F3E2 | 240, 243, 226 | 71°, 41%, 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 #F0F3E2, closest to the named color Au Clair de la Lune. 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, #f4f2e2, #ecf3e1) - Diagonal:
linear-gradient(135deg, #f4f2e2, #ecf3e1) - Radial, from the center out:
radial-gradient(circle, #f4f2e2, #ecf3e1) - Tailwind CSS:
bg-gradient-to-r from-[#f4f2e2] 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 Au Clair de la Lune to White Mecca gradient?
It starts at #F4F2E2 (Au Clair de la Lune) and ends at #ECF3E1 (White Mecca), with #F0F3E2 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #f4f2e2, #ecf3e1) runs from White Mecca on the left to Au Clair de la Lune on the right.