Cosmic Heart to Vice City Gradient
CSS
background: linear-gradient(90deg, #9601f4 0%, #ee00dd 100%);
From Cosmic Heart (#9601F4) to Vice City (#EE00DD). The two hues are 27° 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 | |
|---|---|---|---|---|---|
| Cosmic Heart | #9601F4 | 150, 1, 244 | 277°, 99%, 48% | 39, 100, 0, 4 | |
| 25% (near Vibrant Purple) | #AC01EE | 172, 1, 238 | 283°, 99%, 47% | 28, 100, 0, 7 | |
| 50% (near Trippy Velvet) | #C201E9 | 194, 1, 233 | 290°, 99%, 46% | 17, 100, 0, 9 | |
| 75% (near Piercing Pink) | #D800E3 | 216, 0, 227 | 297°, 100%, 45% | 5, 100, 0, 11 | |
| Vice City | #EE00DD | 238, 0, 221 | 304°, 100%, 47% | 0, 100, 7, 7 |
Halfway along, the gradient is #C201E9, closest to the named color Trippy Velvet. 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 Cosmic Heart end and black text on the Vice City 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 1.57:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #9601f4, #ee00dd) - Diagonal:
linear-gradient(135deg, #9601f4, #ee00dd) - Radial, from the center out:
radial-gradient(circle, #9601f4, #ee00dd) - Tailwind CSS:
bg-gradient-to-r from-[#9601f4] to-[#ee00dd]
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 Cosmic Heart to Vice City gradient?
It starts at #9601F4 (Cosmic Heart) and ends at #EE00DD (Vice City), with #C201E9 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #9601f4, #ee00dd) runs from Vice City on the left to Cosmic Heart on the right.