Royalty to Purple Ink Gradient
CSS
background: linear-gradient(90deg, #5930a9 0%, #9a2ca0 100%);
From Royalty (#5930A9) to Purple Ink (#9A2CA0). The two hues are 37° 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 | |
|---|---|---|---|---|---|
| Royalty | #5930A9 | 89, 48, 169 | 260°, 56%, 43% | 47, 72, 0, 34 | |
| 25% (near Purple Heart) | #692FA7 | 105, 47, 167 | 269°, 56%, 42% | 37, 72, 0, 35 | |
| 50% (near Purple Pristine) | #7A2EA5 | 122, 46, 165 | 278°, 56%, 41% | 26, 72, 0, 35 | |
| 75% (near Pleasant Purple) | #8A2DA2 | 138, 45, 162 | 288°, 57%, 41% | 15, 72, 0, 36 | |
| Purple Ink | #9A2CA0 | 154, 44, 160 | 297°, 57%, 40% | 4, 72, 0, 37 |
Halfway along, the gradient is #7A2EA5, closest to the named color Purple Pristine. 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.34:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #5930a9, #9a2ca0) - Diagonal:
linear-gradient(135deg, #5930a9, #9a2ca0) - Radial, from the center out:
radial-gradient(circle, #5930a9, #9a2ca0) - Tailwind CSS:
bg-gradient-to-r from-[#5930a9] to-[#9a2ca0]
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 Royalty to Purple Ink gradient?
It starts at #5930A9 (Royalty) and ends at #9A2CA0 (Purple Ink), with #7A2EA5 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #5930a9, #9a2ca0) runs from Purple Ink on the left to Royalty on the right.