Cantaloupe to Nuclear Acid Gradient
CSS
background: linear-gradient(90deg, #ffd479 0%, #ecf474 100%);
From Cantaloupe (#FFD479) to Nuclear Acid (#ECF474). The two hues are 23° 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 | |
|---|---|---|---|---|---|
| Cantaloupe | #FFD479 | 255, 212, 121 | 41°, 100%, 74% | 0, 17, 53, 0 | |
| 25% (near Ravioli al Limone) | #FADC78 | 250, 220, 120 | 46°, 93%, 73% | 0, 12, 52, 2 | |
| 50% (near Sweet Corn) | #F6E477 | 246, 228, 119 | 51°, 88%, 72% | 0, 7, 52, 4 | |
| 75% (near Illuminating) | #F1EC75 | 241, 236, 117 | 58°, 82%, 70% | 0, 2, 51, 5 | |
| Nuclear Acid | #ECF474 | 236, 244, 116 | 64°, 85%, 71% | 3, 0, 52, 4 |
Halfway along, the gradient is #F6E477, closest to the named color Sweet Corn. 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.19:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #ffd479, #ecf474) - Diagonal:
linear-gradient(135deg, #ffd479, #ecf474) - Radial, from the center out:
radial-gradient(circle, #ffd479, #ecf474) - Tailwind CSS:
bg-gradient-to-r from-[#ffd479] to-[#ecf474]
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 Cantaloupe to Nuclear Acid gradient?
It starts at #FFD479 (Cantaloupe) and ends at #ECF474 (Nuclear Acid), with #F6E477 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #ffd479, #ecf474) runs from Nuclear Acid on the left to Cantaloupe on the right.