Crème Pâtissière to Nuclear Acid Gradient
CSS
background: linear-gradient(90deg, #fdd77a 0%, #ecf474 100%);
From Crème Pâtissière (#FDD77A) to Nuclear Acid (#ECF474). The two hues are 21° 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 | |
|---|---|---|---|---|---|
| Crème Pâtissière | #FDD77A | 253, 215, 122 | 43°, 97%, 74% | 0, 15, 52, 1 | |
| 25% (near Ravioli al Limone) | #F9DE79 | 249, 222, 121 | 47°, 91%, 73% | 0, 11, 51, 2 | |
| 50% (near Sweet Corn) | #F5E677 | 245, 230, 119 | 53°, 86%, 71% | 0, 6, 51, 4 | |
| 75% (near Illuminating) | #F0ED76 | 240, 237, 118 | 59°, 80%, 70% | 0, 1, 51, 6 | |
| Nuclear Acid | #ECF474 | 236, 244, 116 | 64°, 85%, 71% | 3, 0, 52, 4 |
Halfway along, the gradient is #F5E677, closest to the named color Sweet Corn. 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.17:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #fdd77a, #ecf474) - Diagonal:
linear-gradient(135deg, #fdd77a, #ecf474) - Radial, from the center out:
radial-gradient(circle, #fdd77a, #ecf474) - Tailwind CSS:
bg-gradient-to-r from-[#fdd77a] to-[#ecf474]
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 Crème Pâtissière to Nuclear Acid gradient?
It starts at #FDD77A (Crème Pâtissière) and ends at #ECF474 (Nuclear Acid), with #F5E677 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #fdd77a, #ecf474) runs from Nuclear Acid on the left to Crème Pâtissière on the right.