Mikado Yellow to Chartreuse Gradient
CSS
background: linear-gradient(90deg, #ffc40c 0%, #c1f80a 100%);
From Mikado Yellow (#FFC40C) to Chartreuse (#C1F80A). 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 | |
|---|---|---|---|---|---|
| Mikado Yellow | #FFC40C | 255, 196, 12 | 45°, 100%, 52% | 0, 23, 95, 0 | |
| 25% (near Egg Toast) | #F0D10C | 240, 209, 12 | 52°, 90%, 49% | 0, 13, 95, 6 | |
| 50% (near Yellow Buzzing) | #E0DE0B | 224, 222, 11 | 59°, 91%, 46% | 0, 1, 95, 12 | |
| 75% (near Poisonous Pesto) | #D1EB0B | 209, 235, 11 | 67°, 91%, 48% | 11, 0, 95, 8 | |
| Chartreuse | #C1F80A | 193, 248, 10 | 74°, 94%, 51% | 22, 0, 96, 3 |
Halfway along, the gradient is #E0DE0B, 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.27:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #ffc40c, #c1f80a) - Diagonal:
linear-gradient(135deg, #ffc40c, #c1f80a) - Radial, from the center out:
radial-gradient(circle, #ffc40c, #c1f80a) - Tailwind CSS:
bg-gradient-to-r from-[#ffc40c] to-[#c1f80a]
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 Mikado Yellow to Chartreuse gradient?
It starts at #FFC40C (Mikado Yellow) and ends at #C1F80A (Chartreuse), with #E0DE0B in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #ffc40c, #c1f80a) runs from Chartreuse on the left to Mikado Yellow on the right.