Violet Velvet to Somewhere in a Fairytale Gradient
CSS
background: linear-gradient(90deg, #b19cd9 0%, #cc99dd 100%);
From Violet Velvet (#B19CD9) to Somewhere in a Fairytale (#CC99DD). The two hues are 24° 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 | |
|---|---|---|---|---|---|
| Violet Velvet | #B19CD9 | 177, 156, 217 | 261°, 45%, 73% | 18, 28, 0, 15 | |
| 25% (near Violet Velvet) | #B89BDA | 184, 155, 218 | 268°, 46%, 73% | 16, 29, 0, 15 | |
| 50% (near Enchanted Lavender) | #BF9BDB | 191, 155, 219 | 274°, 47%, 73% | 13, 29, 0, 14 | |
| 75% (near Somewhere in a Fairytale) | #C59ADC | 197, 154, 220 | 279°, 49%, 73% | 10, 30, 0, 14 | |
| Somewhere in a Fairytale | #CC99DD | 204, 153, 221 | 285°, 50%, 73% | 8, 31, 0, 13 |
Halfway along, the gradient is #BF9BDB, closest to the named color Enchanted Lavender. The stops are mixed in RGB, the way browsers draw a linear gradient by default.
Text on this gradient
Black 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.06:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #b19cd9, #cc99dd) - Diagonal:
linear-gradient(135deg, #b19cd9, #cc99dd) - Radial, from the center out:
radial-gradient(circle, #b19cd9, #cc99dd) - Tailwind CSS:
bg-gradient-to-r from-[#b19cd9] to-[#cc99dd]
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 Violet Velvet to Somewhere in a Fairytale gradient?
It starts at #B19CD9 (Violet Velvet) and ends at #CC99DD (Somewhere in a Fairytale), with #BF9BDB in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #b19cd9, #cc99dd) runs from Somewhere in a Fairytale on the left to Violet Velvet on the right.