← All gradients
35%How it works
Linear ↗

Linear Gradient

#5E6AD2
#A8A8F0
Text readability
Brand CoolPastel Tech

Linear Gradient is a cool and pastel 2-colour linear gradient that runs from blue (#5E6AD2) to pale blue (#A8A8F0) at 135°. It is inspired by Linear’s brand colours, a reference point for tech interfaces. Black text reads best on it, at a contrast ratio of 6.6:1 against the gradient’s average colour (AA). Check every point, not just the average →

Unofficial reference: inspired by Linear’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by Linear. Linear is a trademark of its owner. The CSS is free to use, but don’t use these colours to make your own product look like Linear’s. Terms

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

Linear Gradient for SwiftUI, Flutter, Android and more

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

let linearGradient = LinearGradient(
    colors: [
        Color(red: 0.369, green: 0.416, blue: 0.824),
        Color(red: 0.659, green: 0.659, blue: 0.941)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(linearGradient)

Colours in the Linear Gradient

StopNameHEXRGBHSL
1Blue#5E6AD2rgb(94, 106, 210)hsl(234, 56%, 60%)
2Pale blue#A8A8F0rgb(168, 168, 240)hsl(240, 71%, 80%)

Linear Gradient in use

Build something beautifulA hero section on the Linear GradientGet started
Button
Card accentAs a border or progress bar
Gradient text

Linear 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 Linear Gradient?

The Linear Gradient uses 2 colours: #5E6AD2 and #A8A8F0, at an angle of 135°.

How do I use the Linear Gradient in CSS?

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

What text colour works on the Linear Gradient?

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