#3A1C71
#D76D77
#FFAF7B
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 →
background: linear-gradient(135deg, #3A1C71, #D76D77, #FFAF7B);
bg-gradient-to-br from-[#3A1C71] via-[#D76D77] to-[#FFAF7B]
{
"relay": {
"value": "linear-gradient(135deg, #3A1C71 0%, #D76D77 50%, #FFAF7B 100%)",
"type": "color"
}
}
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)val relayColors = listOf(Color(0xFF3A1C71), Color(0xFFD76D77), Color(0xFFFFAF7B))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = relayColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/relay_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#3A1C71"
android:centerColor="#D76D77"
android:endColor="#FFAF7B"
android:type="linear" />
</shape>const relayGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF3A1C71), Color(0xFFD76D77), Color(0xFFFFAF7B)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: relayGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#3A1C71', '#D76D77', '#FFAF7B']}
start={{ x: 0, y: 0 }}
end={{ x: 1, y: 1 }}
style={{ flex: 1 }}
/><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<defs>
<linearGradient id="relay" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#3A1C71" />
<stop offset="50%" stop-color="#D76D77" />
<stop offset="100%" stop-color="#FFAF7B" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#relay)" />
</svg>:root {
--relay-1: #3A1C71;
--relay-2: #D76D77;
--relay-3: #FFAF7B;
--relay-angle: 135deg;
--relay: linear-gradient(var(--relay-angle), var(--relay-1), var(--relay-2), var(--relay-3));
}
.hero {
background: var(--relay);
}$relay-1: #3A1C71;
$relay-2: #D76D77;
$relay-3: #FFAF7B;
$relay: linear-gradient(135deg, $relay-1, $relay-2, $relay-3);
@mixin relay-bg {
background: $relay-1;
background: $relay;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Purple | #3A1C71 | rgb(58, 28, 113) | hsl(261, 60%, 28%) |
| 2 | Light red | #D76D77 | rgb(215, 109, 119) | hsl(354, 57%, 64%) |
| 3 | Light orange | #FFAF7B | rgb(255, 175, 123) | hsl(24, 100%, 74%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Relay gradient uses 3 colours: #3A1C71, #D76D77 and #FFAF7B, at an angle of 135°.
Paste background: linear-gradient(135deg, #3A1C71, #D76D77, #FFAF7B); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
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.