#2E1065
#4C1D95
#7C3AED
Violet Hero is a dark, cool and bold 3-colour linear gradient that runs from deep purple (#2E1065) through purple (#4C1D95) to purple (#7C3AED) at 135°. It suits dark-mode interfaces and footers and dashboards and SaaS landing pages. White text reads best on it, at a contrast ratio of 9.9:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(135deg, #2E1065, #4C1D95, #7C3AED);
bg-gradient-to-br from-[#2E1065] via-[#4C1D95] to-[#7C3AED]
{
"violet-hero": {
"value": "linear-gradient(135deg, #2E1065 0%, #4C1D95 50%, #7C3AED 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let violetHeroGradient = LinearGradient(
colors: [
Color(red: 0.18, green: 0.063, blue: 0.396),
Color(red: 0.298, green: 0.114, blue: 0.584),
Color(red: 0.486, green: 0.227, blue: 0.929)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(violetHeroGradient)val violetHeroColors = listOf(Color(0xFF2E1065), Color(0xFF4C1D95), Color(0xFF7C3AED))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = violetHeroColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/violet-hero_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#2E1065"
android:centerColor="#4C1D95"
android:endColor="#7C3AED"
android:type="linear" />
</shape>const violetHeroGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF2E1065), Color(0xFF4C1D95), Color(0xFF7C3AED)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: violetHeroGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#2E1065', '#4C1D95', '#7C3AED']}
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="violet-hero" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#2E1065" />
<stop offset="50%" stop-color="#4C1D95" />
<stop offset="100%" stop-color="#7C3AED" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#violet-hero)" />
</svg>:root {
--violet-hero-1: #2E1065;
--violet-hero-2: #4C1D95;
--violet-hero-3: #7C3AED;
--violet-hero-angle: 135deg;
--violet-hero: linear-gradient(var(--violet-hero-angle), var(--violet-hero-1), var(--violet-hero-2), var(--violet-hero-3));
}
.hero {
background: var(--violet-hero);
}$violet-hero-1: #2E1065;
$violet-hero-2: #4C1D95;
$violet-hero-3: #7C3AED;
$violet-hero: linear-gradient(135deg, $violet-hero-1, $violet-hero-2, $violet-hero-3);
@mixin violet-hero-bg {
background: $violet-hero-1;
background: $violet-hero;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Deep purple | #2E1065 | rgb(46, 16, 101) | hsl(261, 73%, 23%) |
| 2 | Purple | #4C1D95 | rgb(76, 29, 149) | hsl(264, 67%, 35%) |
| 3 | Purple | #7C3AED | rgb(124, 58, 237) | hsl(262, 83%, 58%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Violet Hero gradient uses 3 colours: #2E1065, #4C1D95 and #7C3AED, at an angle of 135°.
Paste background: linear-gradient(135deg, #2E1065, #4C1D95, #7C3AED); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 9.9:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.