#3C096C
#9D4EDD
#FF9E00
Halloween Spellbook is a warm and bold 3-colour linear gradient that runs from deep purple (#3C096C) through purple (#9D4EDD) to orange (#FF9E00) at 135°. It suits hero sections and call-to-action buttons and banners and attention-grabbing headers. White text reads best on it, at a contrast ratio of 5.4:1 against the gradient’s average colour (AA). Check every point, not just the average →
background: linear-gradient(135deg, #3C096C, #9D4EDD, #FF9E00);
bg-gradient-to-br from-[#3C096C] via-[#9D4EDD] to-[#FF9E00]
{
"halloween-spellbook": {
"value": "linear-gradient(135deg, #3C096C 0%, #9D4EDD 50%, #FF9E00 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let halloweenSpellbookGradient = LinearGradient(
colors: [
Color(red: 0.235, green: 0.035, blue: 0.424),
Color(red: 0.616, green: 0.306, blue: 0.867),
Color(red: 1, green: 0.62, blue: 0)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(halloweenSpellbookGradient)val halloweenSpellbookColors = listOf(Color(0xFF3C096C), Color(0xFF9D4EDD), Color(0xFFFF9E00))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = halloweenSpellbookColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/halloween-spellbook_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#3C096C"
android:centerColor="#9D4EDD"
android:endColor="#FF9E00"
android:type="linear" />
</shape>const halloweenSpellbookGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF3C096C), Color(0xFF9D4EDD), Color(0xFFFF9E00)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: halloweenSpellbookGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#3C096C', '#9D4EDD', '#FF9E00']}
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="halloween-spellbook" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#3C096C" />
<stop offset="50%" stop-color="#9D4EDD" />
<stop offset="100%" stop-color="#FF9E00" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#halloween-spellbook)" />
</svg>:root {
--halloween-spellbook-1: #3C096C;
--halloween-spellbook-2: #9D4EDD;
--halloween-spellbook-3: #FF9E00;
--halloween-spellbook-angle: 135deg;
--halloween-spellbook: linear-gradient(var(--halloween-spellbook-angle), var(--halloween-spellbook-1), var(--halloween-spellbook-2), var(--halloween-spellbook-3));
}
.hero {
background: var(--halloween-spellbook);
}$halloween-spellbook-1: #3C096C;
$halloween-spellbook-2: #9D4EDD;
$halloween-spellbook-3: #FF9E00;
$halloween-spellbook: linear-gradient(135deg, $halloween-spellbook-1, $halloween-spellbook-2, $halloween-spellbook-3);
@mixin halloween-spellbook-bg {
background: $halloween-spellbook-1;
background: $halloween-spellbook;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Deep purple | #3C096C | rgb(60, 9, 108) | hsl(271, 85%, 23%) |
| 2 | Purple | #9D4EDD | rgb(157, 78, 221) | hsl(273, 68%, 59%) |
| 3 | Orange | #FF9E00 | rgb(255, 158, 0) | hsl(37, 100%, 50%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Halloween Spellbook gradient uses 3 colours: #3C096C, #9D4EDD and #FF9E00, at an angle of 135°.
Paste background: linear-gradient(135deg, #3C096C, #9D4EDD, #FF9E00); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 5.4:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.