Bluebell to Rebecca Purple Gradient
CSS
background: linear-gradient(90deg, #333399 0%, #663399 100%);
From Bluebell (#333399) to Rebecca Purple (#663399). 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 | OKLCH | |
|---|---|---|---|---|---|---|
| Bluebell | #333399 | 51, 51, 153 | 240°, 50%, 40% | 67, 67, 0, 40 | 39.1% 0.162 276 | |
| 25% (near Galactic Purple) | #403399 | 64, 51, 153 | 248°, 50%, 40% | 58, 67, 0, 40 | 40.1% 0.159 282 | |
| 50% (near Galactic Purple) | #4D3399 | 77, 51, 153 | 255°, 50%, 40% | 50, 67, 0, 40 | 41.3% 0.158 289 | |
| 75% (near Ruthless Empress) | #593399 | 89, 51, 153 | 262°, 50%, 40% | 42, 67, 0, 40 | 42.5% 0.158 296 | |
| Rebecca Purple | #663399 | 102, 51, 153 | 270°, 50%, 40% | 33, 67, 0, 40 | 44.0% 0.160 303 |
Halfway along, the gradient is #4D3399, closest to the named color Galactic Purple. 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.20:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #333399, #663399) - Diagonal:
linear-gradient(135deg, #333399, #663399) - Radial, from the center out:
radial-gradient(circle, #333399, #663399) - Tailwind CSS:
bg-gradient-to-r from-[#333399] to-[#663399]
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 Bluebell to Rebecca Purple gradient?
It starts at #333399 (Bluebell) and ends at #663399 (Rebecca Purple), with #4D3399 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #333399, #663399) runs from Rebecca Purple on the left to Bluebell on the right.