Drifting Violet to Purple Passion Gradient
CSS
background: linear-gradient(90deg, #5b4276 0%, #784674 100%);
From Drifting Violet (#5B4276) to Purple Passion (#784674). The two hues are 36° 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 | |
|---|---|---|---|---|---|
| Drifting Violet | #5B4276 | 91, 66, 118 | 269°, 28%, 36% | 23, 44, 0, 54 | |
| 25% (near Drifting Violet) | #624376 | 98, 67, 118 | 276°, 28%, 36% | 17, 43, 0, 54 | |
| 50% (near Neon Violet) | #6A4475 | 106, 68, 117 | 287°, 26%, 36% | 9, 42, 0, 54 | |
| 75% (near Purple Passion) | #714575 | 113, 69, 117 | 295°, 26%, 36% | 3, 41, 0, 54 | |
| Purple Passion | #784674 | 120, 70, 116 | 305°, 26%, 37% | 0, 42, 3, 53 |
Halfway along, the gradient is #6A4475, closest to the named color Neon Violet. 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.18:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #5b4276, #784674) - Diagonal:
linear-gradient(135deg, #5b4276, #784674) - Radial, from the center out:
radial-gradient(circle, #5b4276, #784674) - Tailwind CSS:
bg-gradient-to-r from-[#5b4276] to-[#784674]
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 Drifting Violet to Purple Passion gradient?
It starts at #5B4276 (Drifting Violet) and ends at #784674 (Purple Passion), with #6A4475 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #5b4276, #784674) runs from Purple Passion on the left to Drifting Violet on the right.