Wonka Purple to Murasaki Gradient
CSS
background: linear-gradient(90deg, #4a2559 0%, #4f284b 100%);
From Wonka Purple (#4A2559) to Murasaki (#4F284B). 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 | |
|---|---|---|---|---|---|
| Wonka Purple | #4A2559 | 74, 37, 89 | 283°, 41%, 25% | 17, 58, 0, 65 | |
| 25% (near Wonka Purple) | #4B2656 | 75, 38, 86 | 286°, 39%, 24% | 13, 56, 0, 66 | |
| 50% (near Murasaki) | #4D2752 | 77, 39, 82 | 293°, 36%, 24% | 6, 52, 0, 68 | |
| 75% (near Murasaki) | #4E274F | 78, 39, 79 | 299°, 34%, 23% | 1, 51, 0, 69 | |
| Murasaki | #4F284B | 79, 40, 75 | 306°, 33%, 23% | 0, 49, 5, 69 |
Halfway along, the gradient is #4D2752, closest to the named color Murasaki. The stops are mixed in RGB, the way browsers draw a linear gradient by default.
Text on this gradient
White 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, #4a2559, #4f284b) - Diagonal:
linear-gradient(135deg, #4a2559, #4f284b) - Radial, from the center out:
radial-gradient(circle, #4a2559, #4f284b) - Tailwind CSS:
bg-gradient-to-r from-[#4a2559] to-[#4f284b]
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 Wonka Purple to Murasaki gradient?
It starts at #4A2559 (Wonka Purple) and ends at #4F284B (Murasaki), with #4D2752 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #4a2559, #4f284b) runs from Murasaki on the left to Wonka Purple on the right.