Purple to Yellow Gradient
CSS GradientThe purple to yellow gradient is crafted with 5 colors (#3C3489, #7F77DD, #BA7517, #EF9F27, #FAC775). Ready-to-use linear, radial, and conic CSS rules for modern web and mobile apps.

|
#3C3489
#7F77DD
#BA7517
#EF9F27
#FAC775
1. Gradient Color Stops
| Swatch | HEX | RGB | HSL | CMYK | OKLCH |
|---|---|---|---|---|---|
#3C3489 | 60, 52, 137 | 246°, 45%, 37% | 56%, 62%, 0%, 46% | oklch(0.386 0.137 282) | |
#7F77DD | 127, 119, 221 | 245°, 60%, 67% | 43%, 46%, 0%, 13% | oklch(0.623 0.150 285) | |
#BA7517 | 186, 117, 23 | 35°, 78%, 41% | 0%, 37%, 88%, 27% | oklch(0.622 0.130 67) | |
#EF9F27 | 239, 159, 39 | 36°, 86%, 55% | 0%, 33%, 84%, 6% | oklch(0.764 0.154 71) | |
#FAC775 | 250, 199, 117 | 37°, 93%, 72% | 0%, 20%, 53%, 2% | oklch(0.858 0.116 78) |
2. Gradient Variations & Styles
Linear Gradient
Radial Gradient
Conic Gradient
3. CSS Code & Declarations
Linear Gradient
background: linear-gradient(to right, #3C3489, #7F77DD, #BA7517, #EF9F27, #FAC775);
Radial Gradient
background: radial-gradient(circle, #3C3489, #7F77DD, #BA7517, #EF9F27, #FAC775);
Conic Gradient
background: conic-gradient(from 180deg at 50% 50%, #3C3489, #7F77DD, #BA7517, #EF9F27, #FAC775);
Tailwind CSS
bg-gradient-to-r from-[#3C3489] to-[#FAC775]
SCSS Variable
$gradient-purple-to-yellow-gradient: linear-gradient(to right, #3C3489, #7F77DD, #BA7517, #EF9F27, #FAC775);
4. Stop Accessibility & Contrast
#3C3489Stop 1
On White:10.27:1
On Black:2.04:1
WCAG Pass
#7F77DDStop 2
On White:3.76:1
On Black:5.59:1
WCAG Pass
#BA7517Stop 3
On White:3.72:1
On Black:5.64:1
WCAG Pass
#EF9F27Stop 4
On White:2.17:1
On Black:9.66:1
WCAG Pass
#FAC775Stop 5
On White:1.56:1
On Black:13.49:1
WCAG Pass
5. UI Preview with Gradient
Card Header
Purple to Yellow Gradient Banner
Stunning backgrounds for hero sections, marketing callouts, and modern card containers.
Modern Dark Mode
Gradient Glow
Use vibrant gradients as high-conversion button fills, text-gradients, or active focus rings.
Text Gradient
Similar Gradients
Gradient Ideas
About Purple to Yellow Gradient
Gradient Name
Purple to Yellow Gradient
Color Stops
5 Colors
First Color
#3C3489
End Color
#FAC775
Color Swatches