Under the Sun to Mochito Gradient
CSS
background: linear-gradient(90deg, #efd100 0%, #8efa00 100%);
From Under the Sun (#EFD100) to Mochito (#8EFA00). 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 | |
|---|---|---|---|---|---|
| Under the Sun | #EFD100 | 239, 209, 0 | 52°, 100%, 47% | 0, 13, 100, 6 | |
| 25% (near Goldzilla) | #D7DB00 | 215, 219, 0 | 61°, 100%, 43% | 2, 0, 100, 14 | |
| 50% (near Lush Green) | #BFE600 | 191, 230, 0 | 70°, 100%, 45% | 17, 0, 100, 10 | |
| 75% (near Spring Bud) | #A6F000 | 166, 240, 0 | 79°, 100%, 47% | 31, 0, 100, 6 | |
| Mochito | #8EFA00 | 142, 250, 0 | 86°, 100%, 49% | 43, 0, 100, 2 |
Halfway along, the gradient is #BFE600, closest to the named color Lush Green. 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.15:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #efd100, #8efa00) - Diagonal:
linear-gradient(135deg, #efd100, #8efa00) - Radial, from the center out:
radial-gradient(circle, #efd100, #8efa00) - Tailwind CSS:
bg-gradient-to-r from-[#efd100] to-[#8efa00]
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 Under the Sun to Mochito gradient?
It starts at #EFD100 (Under the Sun) and ends at #8EFA00 (Mochito), with #BFE600 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #efd100, #8efa00) runs from Mochito on the left to Under the Sun on the right.