Pac-Man to Lime Gradient
CSS
background: linear-gradient(90deg, #ffe737 0%, #aaff32 100%);
From Pac-Man (#FFE737) to Lime (#AAFF32). The two hues are 32° 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 | |
|---|---|---|---|---|---|
| Pac-Man | #FFE737 | 255, 231, 55 | 53°, 100%, 61% | 0, 9, 78, 0 | |
| 25% (near Pika Yellow) | #EAED36 | 234, 237, 54 | 61°, 84%, 57% | 1, 0, 77, 7 | |
| 50% (near Lime Fizz) | #D5F335 | 213, 243, 53 | 69°, 89%, 58% | 12, 0, 78, 5 | |
| 75% (near Pick Your Poison) | #BFF933 | 191, 249, 51 | 78°, 94%, 59% | 23, 0, 80, 2 | |
| Lime | #AAFF32 | 170, 255, 50 | 85°, 100%, 60% | 33, 0, 80, 0 |
Halfway along, the gradient is #D5F335, closest to the named color Lime Fizz. 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.02:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #ffe737, #aaff32) - Diagonal:
linear-gradient(135deg, #ffe737, #aaff32) - Radial, from the center out:
radial-gradient(circle, #ffe737, #aaff32) - Tailwind CSS:
bg-gradient-to-r from-[#ffe737] to-[#aaff32]
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 Pac-Man to Lime gradient?
It starts at #FFE737 (Pac-Man) and ends at #AAFF32 (Lime), with #D5F335 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #ffe737, #aaff32) runs from Lime on the left to Pac-Man on the right.