#240046
#5A189A
#C77DFF
Halloween Haunted Violet is a cool and dark 3-colour linear gradient that runs from deep purple (#240046) through purple (#5A189A) to light purple (#C77DFF) at 160°. It suits dashboards and SaaS landing pages and dark-mode interfaces and footers. White text reads best on it, at a contrast ratio of 8.1:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(160deg, #240046, #5A189A, #C77DFF);
bg-[linear-gradient(160deg,#240046,#5A189A,#C77DFF)]
{
"halloween-haunted-violet": {
"value": "linear-gradient(160deg, #240046 0%, #5A189A 50%, #C77DFF 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let halloweenHauntedVioletGradient = LinearGradient(
colors: [
Color(red: 0.141, green: 0, blue: 0.275),
Color(red: 0.353, green: 0.094, blue: 0.604),
Color(red: 0.78, green: 0.49, blue: 1)
],
startPoint: UnitPoint(x: 0.318, y: 0),
endPoint: UnitPoint(x: 0.682, y: 1)
)
// Usage
Rectangle().fill(halloweenHauntedVioletGradient)val halloweenHauntedVioletColors = listOf(Color(0xFF240046), Color(0xFF5A189A), Color(0xFFC77DFF))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = halloweenHauntedVioletColors,
start = Offset(size.width * 0.318f, size.height * 0f),
end = Offset(size.width * 0.682f, size.height * 1f)
)
)
}<!-- res/drawable/halloween-haunted-violet_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#240046"
android:centerColor="#5A189A"
android:endColor="#C77DFF"
android:type="linear" />
</shape>
<!-- Android only takes multiples of 45°: 160deg in CSS is 290°, rounded to 270°. -->const halloweenHauntedVioletGradient = LinearGradient(
begin: Alignment(-0.364, -1),
end: Alignment(0.364, 1),
colors: [Color(0xFF240046), Color(0xFF5A189A), Color(0xFFC77DFF)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: halloweenHauntedVioletGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#240046', '#5A189A', '#C77DFF']}
start={{ x: 0.318, y: 0 }}
end={{ x: 0.682, 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="halloween-haunted-violet" x1="0.318" y1="0" x2="0.682" y2="1">
<stop offset="0%" stop-color="#240046" />
<stop offset="50%" stop-color="#5A189A" />
<stop offset="100%" stop-color="#C77DFF" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#halloween-haunted-violet)" />
</svg>:root {
--halloween-haunted-violet-1: #240046;
--halloween-haunted-violet-2: #5A189A;
--halloween-haunted-violet-3: #C77DFF;
--halloween-haunted-violet-angle: 160deg;
--halloween-haunted-violet: linear-gradient(var(--halloween-haunted-violet-angle), var(--halloween-haunted-violet-1), var(--halloween-haunted-violet-2), var(--halloween-haunted-violet-3));
}
.hero {
background: var(--halloween-haunted-violet);
}$halloween-haunted-violet-1: #240046;
$halloween-haunted-violet-2: #5A189A;
$halloween-haunted-violet-3: #C77DFF;
$halloween-haunted-violet: linear-gradient(160deg, $halloween-haunted-violet-1, $halloween-haunted-violet-2, $halloween-haunted-violet-3);
@mixin halloween-haunted-violet-bg {
background: $halloween-haunted-violet-1;
background: $halloween-haunted-violet;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Deep purple | #240046 | rgb(36, 0, 70) | hsl(271, 100%, 14%) |
| 2 | Purple | #5A189A | rgb(90, 24, 154) | hsl(270, 73%, 35%) |
| 3 | Light purple | #C77DFF | rgb(199, 125, 255) | hsl(274, 100%, 75%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Halloween Haunted Violet gradient uses 3 colours: #240046, #5A189A and #C77DFF, at an angle of 160°.
Paste background: linear-gradient(160deg, #240046, #5A189A, #C77DFF); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 8.1:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.