Violent Violet to Magenta Gradient
CSS
background: linear-gradient(90deg, #7f00ff 0%, #ff00ff 100%);
From Violent Violet (#7F00FF) to Magenta (#FF00FF). 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 | |
|---|---|---|---|---|---|
| Violent Violet | #7F00FF | 127, 0, 255 | 270°, 100%, 50% | 50, 100, 0, 0 | |
| 25% (near Vivid Violet) | #9F00FF | 159, 0, 255 | 277°, 100%, 50% | 38, 100, 0, 0 | |
| 50% (near The Grape War of 97’) | #BF00FF | 191, 0, 255 | 285°, 100%, 50% | 25, 100, 0, 0 | |
| 75% (near Psychedelic Purple) | #DF00FF | 223, 0, 255 | 292°, 100%, 50% | 13, 100, 0, 0 | |
| Magenta | #FF00FF | 255, 0, 255 | 300°, 100%, 50% | 0, 100, 0, 0 |
Halfway along, the gradient is #BF00FF, closest to the named color The Grape War of 97’. The stops are mixed in RGB, the way browsers draw a linear gradient by default.
Text on this gradient
White text reads best on the Violent Violet end and black text on the Magenta end. For a single line of text across the whole width, put it on a solid panel or pick the side it sits on. The two end colors have a contrast ratio of 2.00:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #7f00ff, #ff00ff) - Diagonal:
linear-gradient(135deg, #7f00ff, #ff00ff) - Radial, from the center out:
radial-gradient(circle, #7f00ff, #ff00ff) - Tailwind CSS:
bg-gradient-to-r from-[#7f00ff] to-[#ff00ff]
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 Violent Violet to Magenta gradient?
It starts at #7F00FF (Violent Violet) and ends at #FF00FF (Magenta), with #BF00FF in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #7f00ff, #ff00ff) runs from Magenta on the left to Violent Violet on the right.