← All gradients
35%How it works
Curated

Purple and Gold

#2E0B5E
#6A1B9A
#E6B422
Text readability
Curated BoldDark

Purple and Gold is a bold and dark 3-colour linear gradient that runs from deep purple (#2E0B5E) through purple (#6A1B9A) to orange (#E6B422) at 135°. It suits banners and attention-grabbing headers and dark-mode interfaces and footers. White text reads best on it, at a contrast ratio of 7.0:1 against the gradient’s average colour (AA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #2E0B5E, #6A1B9A, #E6B422);
Tailwind
bg-gradient-to-br from-[#2E0B5E] via-[#6A1B9A] to-[#E6B422]
Figma token
{
    "purple-and-gold": {
        "value": "linear-gradient(135deg, #2E0B5E 0%, #6A1B9A 50%, #E6B422 100%)",
        "type": "color"
    }
}

Purple and Gold gradient for SwiftUI, Flutter, Android and more

The same gradient, same direction, ready for your app or design system.

let purpleAndGoldGradient = LinearGradient(
    colors: [
        Color(red: 0.18, green: 0.043, blue: 0.369),
        Color(red: 0.416, green: 0.106, blue: 0.604),
        Color(red: 0.902, green: 0.706, blue: 0.133)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(purpleAndGoldGradient)

Colours in the Purple and Gold gradient

StopNameHEXRGBHSL
1Deep purple#2E0B5Ergb(46, 11, 94)hsl(265, 79%, 21%)
2Purple#6A1B9Argb(106, 27, 154)hsl(277, 70%, 35%)
3Orange#E6B422rgb(230, 180, 34)hsl(45, 80%, 52%)

Purple and Gold gradient in use

Build something beautifulA hero section on the Purple and Gold gradientGet started
Button
Card accentAs a border or progress bar
Gradient text

Purple and Gold gradient variations

Reversed
Horizontal
Radial
Conic
Softer
Deeper
Smooth (OKLCH)
Hard stops

Download as an image

Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.

Frequently asked questions

What are the hex codes for the Purple and Gold gradient?

The Purple and Gold gradient uses 3 colours: #2E0B5E, #6A1B9A and #E6B422, at an angle of 135°.

How do I use the Purple and Gold gradient in CSS?

Paste background: linear-gradient(135deg, #2E0B5E, #6A1B9A, #E6B422); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Purple and Gold gradient?

White text has the best contrast, at 7.0:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.