#8338EC
#FF006E
#FB5607
Halloween Trick or Treat is a warm and bold 3-colour linear gradient that runs from purple (#8338EC) through pink (#FF006E) to orange (#FB5607) at 120°. 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 4.7:1 against the gradient’s average colour (AA). Check every point, not just the average →
background: linear-gradient(120deg, #8338EC, #FF006E, #FB5607);
bg-[linear-gradient(120deg,#8338EC,#FF006E,#FB5607)]
{
"halloween-trick-or-treat": {
"value": "linear-gradient(120deg, #8338EC 0%, #FF006E 50%, #FB5607 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let halloweenTrickOrTreatGradient = LinearGradient(
colors: [
Color(red: 0.514, green: 0.22, blue: 0.925),
Color(red: 1, green: 0, blue: 0.431),
Color(red: 0.984, green: 0.337, blue: 0.027)
],
startPoint: UnitPoint(x: 0, y: 0.212),
endPoint: UnitPoint(x: 1, y: 0.789)
)
// Usage
Rectangle().fill(halloweenTrickOrTreatGradient)val halloweenTrickOrTreatColors = listOf(Color(0xFF8338EC), Color(0xFFFF006E), Color(0xFFFB5607))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = halloweenTrickOrTreatColors,
start = Offset(size.width * 0f, size.height * 0.212f),
end = Offset(size.width * 1f, size.height * 0.789f)
)
)
}<!-- res/drawable/halloween-trick-or-treat_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#8338EC"
android:centerColor="#FF006E"
android:endColor="#FB5607"
android:type="linear" />
</shape>
<!-- Android only takes multiples of 45°: 120deg in CSS is 330°, rounded to 315°. -->const halloweenTrickOrTreatGradient = LinearGradient(
begin: Alignment(-1, -0.577),
end: Alignment(1, 0.577),
colors: [Color(0xFF8338EC), Color(0xFFFF006E), Color(0xFFFB5607)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: halloweenTrickOrTreatGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#8338EC', '#FF006E', '#FB5607']}
start={{ x: 0, y: 0.212 }}
end={{ x: 1, y: 0.789 }}
style={{ flex: 1 }}
/><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<defs>
<linearGradient id="halloween-trick-or-treat" x1="0" y1="0.212" x2="1" y2="0.789">
<stop offset="0%" stop-color="#8338EC" />
<stop offset="50%" stop-color="#FF006E" />
<stop offset="100%" stop-color="#FB5607" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#halloween-trick-or-treat)" />
</svg>:root {
--halloween-trick-or-treat-1: #8338EC;
--halloween-trick-or-treat-2: #FF006E;
--halloween-trick-or-treat-3: #FB5607;
--halloween-trick-or-treat-angle: 120deg;
--halloween-trick-or-treat: linear-gradient(var(--halloween-trick-or-treat-angle), var(--halloween-trick-or-treat-1), var(--halloween-trick-or-treat-2), var(--halloween-trick-or-treat-3));
}
.hero {
background: var(--halloween-trick-or-treat);
}$halloween-trick-or-treat-1: #8338EC;
$halloween-trick-or-treat-2: #FF006E;
$halloween-trick-or-treat-3: #FB5607;
$halloween-trick-or-treat: linear-gradient(120deg, $halloween-trick-or-treat-1, $halloween-trick-or-treat-2, $halloween-trick-or-treat-3);
@mixin halloween-trick-or-treat-bg {
background: $halloween-trick-or-treat-1;
background: $halloween-trick-or-treat;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Purple | #8338EC | rgb(131, 56, 236) | hsl(265, 83%, 57%) |
| 2 | Pink | #FF006E | rgb(255, 0, 110) | hsl(334, 100%, 50%) |
| 3 | Orange | #FB5607 | rgb(251, 86, 7) | hsl(19, 97%, 51%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Halloween Trick or Treat gradient uses 3 colours: #8338EC, #FF006E and #FB5607, at an angle of 120°.
Paste background: linear-gradient(120deg, #8338EC, #FF006E, #FB5607); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 4.7:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.