Sunbathed to Creamy Avocado Gradient
CSS
background: linear-gradient(90deg, #f5dd98 0%, #d8f19c 100%);
From Sunbathed (#F5DD98) to Creamy Avocado (#D8F19C). The two hues are 33° 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 | |
|---|---|---|---|---|---|
| Sunbathed | #F5DD98 | 245, 221, 152 | 45°, 82%, 78% | 0, 10, 38, 4 | |
| 25% (near Lemonade) | #EEE299 | 238, 226, 153 | 52°, 71%, 77% | 0, 5, 36, 7 | |
| 50% (near Lemonade) | #E7E79A | 231, 231, 154 | 60°, 62%, 75% | 0, 0, 33, 9 | |
| 75% (near Creamy Avocado) | #DFEC9B | 223, 236, 155 | 70°, 68%, 77% | 6, 0, 34, 7 | |
| Creamy Avocado | #D8F19C | 216, 241, 156 | 78°, 75%, 78% | 10, 0, 35, 5 |
Halfway along, the gradient is #E7E79A, closest to the named color Lemonade. 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.08:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #f5dd98, #d8f19c) - Diagonal:
linear-gradient(135deg, #f5dd98, #d8f19c) - Radial, from the center out:
radial-gradient(circle, #f5dd98, #d8f19c) - Tailwind CSS:
bg-gradient-to-r from-[#f5dd98] to-[#d8f19c]
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 Sunbathed to Creamy Avocado gradient?
It starts at #F5DD98 (Sunbathed) and ends at #D8F19C (Creamy Avocado), with #E7E79A in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #f5dd98, #d8f19c) runs from Creamy Avocado on the left to Sunbathed on the right.