← All gradients
35%How it works
Curated

Purple Haze

#DA22FF
#9733EE
Text readability
Curated CoolBold

Purple Haze is a cool and bold 2-colour linear gradient that runs from purple (#DA22FF) to purple (#9733EE) at 135°. It suits dashboards and SaaS landing pages and banners and attention-grabbing headers. Black text reads best on it, at a contrast ratio of 4.7:1 against the gradient’s average colour (AA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #DA22FF, #9733EE);
Tailwind
bg-gradient-to-br from-[#DA22FF] to-[#9733EE]
Figma token
{
    "purple-haze": {
        "value": "linear-gradient(135deg, #DA22FF 0%, #9733EE 100%)",
        "type": "color"
    }
}

Purple Haze gradient for SwiftUI, Flutter, Android and more

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

let purpleHazeGradient = LinearGradient(
    colors: [
        Color(red: 0.855, green: 0.133, blue: 1),
        Color(red: 0.592, green: 0.2, blue: 0.933)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(purpleHazeGradient)

Colours in the Purple Haze gradient

StopNameHEXRGBHSL
1Purple#DA22FFrgb(218, 34, 255)hsl(290, 100%, 57%)
2Purple#9733EErgb(151, 51, 238)hsl(272, 85%, 57%)

Purple Haze gradient in use

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

Purple Haze 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 Haze gradient?

The Purple Haze gradient uses 2 colours: #DA22FF and #9733EE, at an angle of 135°.

How do I use the Purple Haze gradient in CSS?

Paste background: linear-gradient(135deg, #DA22FF, #9733EE); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Purple Haze gradient?

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