← All gradients
35%How it works
UI

Soft Purple UI

#F5F3FF
#EDE9FE
Text readability
Ui CoolPastel

Soft Purple UI is a cool and pastel 2-colour linear gradient that runs from off-white (#F5F3FF) to off-white (#EDE9FE) at 135°. It suits dashboards and SaaS landing pages and soft backgrounds, cards and onboarding screens. Black text reads best on it, at a contrast ratio of 18.4:1 against the gradient’s average colour (AAA). Check every point, not just the average →

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

Soft Purple UI gradient for SwiftUI, Flutter, Android and more

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

let softPurpleUiGradient = LinearGradient(
    colors: [
        Color(red: 0.961, green: 0.953, blue: 1),
        Color(red: 0.929, green: 0.914, blue: 0.996)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(softPurpleUiGradient)

Colours in the Soft Purple UI gradient

StopNameHEXRGBHSL
1Off-white#F5F3FFrgb(245, 243, 255)hsl(250, 100%, 98%)
2Off-white#EDE9FErgb(237, 233, 254)hsl(251, 91%, 95%)

Soft Purple UI gradient in use

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

Soft Purple UI 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 Soft Purple UI gradient?

The Soft Purple UI gradient uses 2 colours: #F5F3FF and #EDE9FE, at an angle of 135°.

How do I use the Soft Purple UI gradient in CSS?

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

What text colour works on the Soft Purple UI gradient?

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