Goldilocks to Creamy Avocado Gradient
CSS
background: linear-gradient(90deg, #fff39a 0%, #d8f19c 100%);
From Goldilocks (#FFF39A) to Creamy Avocado (#D8F19C). The two hues are 25° 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 | |
|---|---|---|---|---|---|
| Goldilocks | #FFF39A | 255, 243, 154 | 53°, 100%, 80% | 0, 5, 40, 0 | |
| 25% (near Yippie Ya Yellow) | #F5F39B | 245, 243, 155 | 59°, 82%, 78% | 0, 1, 37, 4 | |
| 50% (near First Day of Summer) | #ECF29B | 236, 242, 155 | 64°, 77%, 78% | 2, 0, 36, 5 | |
| 75% (near Creamy Avocado) | #E2F29C | 226, 242, 156 | 71°, 77%, 78% | 7, 0, 36, 5 | |
| Creamy Avocado | #D8F19C | 216, 241, 156 | 78°, 75%, 78% | 10, 0, 35, 5 |
Halfway along, the gradient is #ECF29B, closest to the named color First Day of Summer. 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.09:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #fff39a, #d8f19c) - Diagonal:
linear-gradient(135deg, #fff39a, #d8f19c) - Radial, from the center out:
radial-gradient(circle, #fff39a, #d8f19c) - Tailwind CSS:
bg-gradient-to-r from-[#fff39a] 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 Goldilocks to Creamy Avocado gradient?
It starts at #FFF39A (Goldilocks) and ends at #D8F19C (Creamy Avocado), with #ECF29B in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #fff39a, #d8f19c) runs from Creamy Avocado on the left to Goldilocks on the right.