Macaroni and Cheese to Banana Gradient
CSS
background: linear-gradient(90deg, #ffb97b 0%, #fffc79 100%);
From Macaroni and Cheese (#FFB97B) to Banana (#FFFC79). The two hues are 30° 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 | |
|---|---|---|---|---|---|
| Macaroni and Cheese | #FFB97B | 255, 185, 123 | 28°, 100%, 74% | 0, 27, 52, 0 | |
| 25% (near Cheesus) | #FFCA7B | 255, 202, 123 | 36°, 100%, 74% | 0, 21, 52, 0 | |
| 50% (near Cup Noodles) | #FFDB7A | 255, 219, 122 | 44°, 100%, 74% | 0, 14, 52, 0 | |
| 75% (near Witch Hazel) | #FFEB7A | 255, 235, 122 | 51°, 100%, 74% | 0, 8, 52, 0 | |
| Banana | #FFFC79 | 255, 252, 121 | 59°, 100%, 74% | 0, 1, 53, 0 |
Halfway along, the gradient is #FFDB7A, closest to the named color Cup Noodles. 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.56:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #ffb97b, #fffc79) - Diagonal:
linear-gradient(135deg, #ffb97b, #fffc79) - Radial, from the center out:
radial-gradient(circle, #ffb97b, #fffc79) - Tailwind CSS:
bg-gradient-to-r from-[#ffb97b] to-[#fffc79]
Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.
Questions
What are the HEX codes of the Macaroni and Cheese to Banana gradient?
It starts at #FFB97B (Macaroni and Cheese) and ends at #FFFC79 (Banana), with #FFDB7A in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #ffb97b, #fffc79) runs from Banana on the left to Macaroni and Cheese on the right.