← All gradients
35%How it works
UI

Avatar Purple

#7C3AED
#5B21B6
Text readability
Ui CoolBold

Avatar Purple is a cool and bold 2-colour linear gradient that runs from purple (#7C3AED) to purple (#5B21B6) at 135°. It suits dashboards and SaaS landing pages and banners and attention-grabbing headers. White text reads best on it, at a contrast ratio of 7.1:1 against the gradient’s average colour (AAA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #7C3AED, #5B21B6);
Tailwind
bg-gradient-to-br from-[#7C3AED] to-[#5B21B6]
Figma token
{
    "avatar-purple": {
        "value": "linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%)",
        "type": "color"
    }
}

Avatar Purple gradient for SwiftUI, Flutter, Android and more

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

let avatarPurpleGradient = LinearGradient(
    colors: [
        Color(red: 0.486, green: 0.227, blue: 0.929),
        Color(red: 0.357, green: 0.129, blue: 0.714)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(avatarPurpleGradient)

Colours in the Avatar Purple gradient

StopNameHEXRGBHSL
1Purple#7C3AEDrgb(124, 58, 237)hsl(262, 83%, 58%)
2Purple#5B21B6rgb(91, 33, 182)hsl(263, 69%, 42%)

Avatar Purple gradient in use

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

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

The Avatar Purple gradient uses 2 colours: #7C3AED and #5B21B6, at an angle of 135°.

How do I use the Avatar Purple gradient in CSS?

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

What text colour works on the Avatar Purple gradient?

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