Sunflower to Toxic Boyfriend Gradient
CSS
background: linear-gradient(90deg, #ffc512 0%, #ccff11 100%);
From Sunflower (#FFC512) to Toxic Boyfriend (#CCFF11). The two hues are 28° 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 | |
|---|---|---|---|---|---|
| Sunflower | #FFC512 | 255, 197, 18 | 45°, 100%, 54% | 0, 23, 93, 0 | |
| 25% (near Yellow Buzzing) | #F2D412 | 242, 212, 18 | 52°, 90%, 51% | 0, 12, 93, 5 | |
| 50% (near Yellow Buzzing) | #E6E212 | 230, 226, 18 | 59°, 85%, 49% | 0, 2, 92, 10 | |
| 75% (near Liquid Lime) | #D9F111 | 217, 241, 17 | 66°, 89%, 51% | 10, 0, 93, 5 | |
| Toxic Boyfriend | #CCFF11 | 204, 255, 17 | 73°, 100%, 53% | 20, 0, 93, 0 |
Halfway along, the gradient is #E6E212, closest to the named color Yellow Buzzing. 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.35:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #ffc512, #ccff11) - Diagonal:
linear-gradient(135deg, #ffc512, #ccff11) - Radial, from the center out:
radial-gradient(circle, #ffc512, #ccff11) - Tailwind CSS:
bg-gradient-to-r from-[#ffc512] to-[#ccff11]
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 Sunflower to Toxic Boyfriend gradient?
It starts at #FFC512 (Sunflower) and ends at #CCFF11 (Toxic Boyfriend), with #E6E212 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #ffc512, #ccff11) runs from Toxic Boyfriend on the left to Sunflower on the right.