← All gradients
35%How it works
Curated

Relay

#3A1C71
#D76D77
#FFAF7B
Text readability
Curated WarmBold

Relay is a warm and bold 3-colour linear gradient that runs from purple (#3A1C71) through light red (#D76D77) to light orange (#FFAF7B) at 135°. It suits hero sections and call-to-action buttons and banners and attention-grabbing headers. Black text reads best on it, at a contrast ratio of 5.1:1 against the gradient’s average colour (AA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #3A1C71, #D76D77, #FFAF7B);
Tailwind
bg-gradient-to-br from-[#3A1C71] via-[#D76D77] to-[#FFAF7B]
Figma token
{
    "relay": {
        "value": "linear-gradient(135deg, #3A1C71 0%, #D76D77 50%, #FFAF7B 100%)",
        "type": "color"
    }
}

Relay gradient for SwiftUI, Flutter, Android and more

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

let relayGradient = LinearGradient(
    colors: [
        Color(red: 0.227, green: 0.11, blue: 0.443),
        Color(red: 0.843, green: 0.427, blue: 0.467),
        Color(red: 1, green: 0.686, blue: 0.482)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(relayGradient)

Colours in the Relay gradient

StopNameHEXRGBHSL
1Purple#3A1C71rgb(58, 28, 113)hsl(261, 60%, 28%)
2Light red#D76D77rgb(215, 109, 119)hsl(354, 57%, 64%)
3Light orange#FFAF7Brgb(255, 175, 123)hsl(24, 100%, 74%)

Relay gradient in use

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

Relay 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 Relay gradient?

The Relay gradient uses 3 colours: #3A1C71, #D76D77 and #FFAF7B, at an angle of 135°.

How do I use the Relay gradient in CSS?

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

What text colour works on the Relay gradient?

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