Pastel Yellow to Celery Mousse Gradient
CSS
background: linear-gradient(90deg, #fdfd96 0%, #c1fd95 100%);
From Pastel Yellow (#FDFD96) to Celery Mousse (#C1FD95). The two hues are 35° 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 | |
|---|---|---|---|---|---|
| Pastel Yellow | #FDFD96 | 253, 253, 150 | 60°, 96%, 79% | 0, 0, 41, 1 | |
| 25% (near Pastel Yellow) | #EEFD96 | 238, 253, 150 | 69°, 96%, 79% | 6, 0, 41, 1 | |
| 50% (near Creamy Avocado) | #DFFD96 | 223, 253, 150 | 77°, 96%, 79% | 12, 0, 41, 1 | |
| 75% (near Celery Mousse) | #D0FD95 | 208, 253, 149 | 86°, 96%, 79% | 18, 0, 41, 1 | |
| Celery Mousse | #C1FD95 | 193, 253, 149 | 95°, 96%, 79% | 24, 0, 41, 1 |
Halfway along, the gradient is #DFFD96, closest to the named color Creamy Avocado. 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.11:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #fdfd96, #c1fd95) - Diagonal:
linear-gradient(135deg, #fdfd96, #c1fd95) - Radial, from the center out:
radial-gradient(circle, #fdfd96, #c1fd95) - Tailwind CSS:
bg-gradient-to-r from-[#fdfd96] to-[#c1fd95]
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 Pastel Yellow to Celery Mousse gradient?
It starts at #FDFD96 (Pastel Yellow) and ends at #C1FD95 (Celery Mousse), with #DFFD96 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #fdfd96, #c1fd95) runs from Celery Mousse on the left to Pastel Yellow on the right.