#7C3AED
#DB2777
#F59E0B
Banner Promo is a bold and warm 3-colour linear gradient that runs from purple (#7C3AED) through pink (#DB2777) to orange (#F59E0B) at 45°. It suits banners and attention-grabbing headers and hero sections and call-to-action buttons. Black text reads best on it, at a contrast ratio of 4.9:1 against the gradient’s average colour (AA). Check every point, not just the average →
background: linear-gradient(45deg, #7C3AED, #DB2777, #F59E0B);
bg-gradient-to-tr from-[#7C3AED] via-[#DB2777] to-[#F59E0B]
{
"banner-promo": {
"value": "linear-gradient(45deg, #7C3AED 0%, #DB2777 50%, #F59E0B 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let bannerPromoGradient = LinearGradient(
colors: [
Color(red: 0.486, green: 0.227, blue: 0.929),
Color(red: 0.859, green: 0.153, blue: 0.467),
Color(red: 0.961, green: 0.62, blue: 0.043)
],
startPoint: UnitPoint(x: 0, y: 1),
endPoint: UnitPoint(x: 1, y: 0)
)
// Usage
Rectangle().fill(bannerPromoGradient)val bannerPromoColors = listOf(Color(0xFF7C3AED), Color(0xFFDB2777), Color(0xFFF59E0B))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = bannerPromoColors,
start = Offset(size.width * 0f, size.height * 1f),
end = Offset(size.width * 1f, size.height * 0f)
)
)
}<!-- res/drawable/banner-promo_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="45"
android:startColor="#7C3AED"
android:centerColor="#DB2777"
android:endColor="#F59E0B"
android:type="linear" />
</shape>const bannerPromoGradient = LinearGradient(
begin: Alignment(-1, 1),
end: Alignment(1, -1),
colors: [Color(0xFF7C3AED), Color(0xFFDB2777), Color(0xFFF59E0B)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: bannerPromoGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#7C3AED', '#DB2777', '#F59E0B']}
start={{ x: 0, y: 1 }}
end={{ x: 1, y: 0 }}
style={{ flex: 1 }}
/><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<defs>
<linearGradient id="banner-promo" x1="0" y1="1" x2="1" y2="0">
<stop offset="0%" stop-color="#7C3AED" />
<stop offset="50%" stop-color="#DB2777" />
<stop offset="100%" stop-color="#F59E0B" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#banner-promo)" />
</svg>:root {
--banner-promo-1: #7C3AED;
--banner-promo-2: #DB2777;
--banner-promo-3: #F59E0B;
--banner-promo-angle: 45deg;
--banner-promo: linear-gradient(var(--banner-promo-angle), var(--banner-promo-1), var(--banner-promo-2), var(--banner-promo-3));
}
.hero {
background: var(--banner-promo);
}$banner-promo-1: #7C3AED;
$banner-promo-2: #DB2777;
$banner-promo-3: #F59E0B;
$banner-promo: linear-gradient(45deg, $banner-promo-1, $banner-promo-2, $banner-promo-3);
@mixin banner-promo-bg {
background: $banner-promo-1;
background: $banner-promo;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Purple | #7C3AED | rgb(124, 58, 237) | hsl(262, 83%, 58%) |
| 2 | Pink | #DB2777 | rgb(219, 39, 119) | hsl(333, 71%, 51%) |
| 3 | Orange | #F59E0B | rgb(245, 158, 11) | hsl(38, 92%, 50%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Banner Promo gradient uses 3 colours: #7C3AED, #DB2777 and #F59E0B, at an angle of 45°.
Paste background: linear-gradient(45deg, #7C3AED, #DB2777, #F59E0B); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 4.9:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.