← All gradients
35%How it works
UI

Violet Hero

#2E1065
#4C1D95
#7C3AED
Text readability
Ui DarkCoolBold

Violet Hero is a dark, cool and bold 3-colour linear gradient that runs from deep purple (#2E1065) through purple (#4C1D95) to purple (#7C3AED) at 135°. It suits dark-mode interfaces and footers and dashboards and SaaS landing pages. White text reads best on it, at a contrast ratio of 9.9:1 against the gradient’s average colour (AAA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #2E1065, #4C1D95, #7C3AED);
Tailwind
bg-gradient-to-br from-[#2E1065] via-[#4C1D95] to-[#7C3AED]
Figma token
{
    "violet-hero": {
        "value": "linear-gradient(135deg, #2E1065 0%, #4C1D95 50%, #7C3AED 100%)",
        "type": "color"
    }
}

Violet Hero gradient for SwiftUI, Flutter, Android and more

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

let violetHeroGradient = LinearGradient(
    colors: [
        Color(red: 0.18, green: 0.063, blue: 0.396),
        Color(red: 0.298, green: 0.114, blue: 0.584),
        Color(red: 0.486, green: 0.227, blue: 0.929)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(violetHeroGradient)

Colours in the Violet Hero gradient

StopNameHEXRGBHSL
1Deep purple#2E1065rgb(46, 16, 101)hsl(261, 73%, 23%)
2Purple#4C1D95rgb(76, 29, 149)hsl(264, 67%, 35%)
3Purple#7C3AEDrgb(124, 58, 237)hsl(262, 83%, 58%)

Violet Hero gradient in use

Build something beautifulA hero section on the Violet Hero gradientGet started
Button
Card accentAs a border or progress bar
Gradient text

Violet Hero 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 Violet Hero gradient?

The Violet Hero gradient uses 3 colours: #2E1065, #4C1D95 and #7C3AED, at an angle of 135°.

How do I use the Violet Hero gradient in CSS?

Paste background: linear-gradient(135deg, #2E1065, #4C1D95, #7C3AED); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Violet Hero gradient?

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