#5A0F2E
#E85D04
#FFD60A
Diwali Diya is a warm and bold 3-colour linear gradient that runs from deep pink (#5A0F2E) through orange (#E85D04) to yellow (#FFD60A) at 135°. It suits hero sections and call-to-action buttons and banners and attention-grabbing headers. Black 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, #5A0F2E, #E85D04, #FFD60A);
bg-gradient-to-br from-[#5A0F2E] via-[#E85D04] to-[#FFD60A]
{
"diwali-diya": {
"value": "linear-gradient(135deg, #5A0F2E 0%, #E85D04 50%, #FFD60A 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let diwaliDiyaGradient = LinearGradient(
colors: [
Color(red: 0.353, green: 0.059, blue: 0.18),
Color(red: 0.91, green: 0.365, blue: 0.016),
Color(red: 1, green: 0.839, blue: 0.039)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(diwaliDiyaGradient)val diwaliDiyaColors = listOf(Color(0xFF5A0F2E), Color(0xFFE85D04), Color(0xFFFFD60A))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = diwaliDiyaColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/diwali-diya_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#5A0F2E"
android:centerColor="#E85D04"
android:endColor="#FFD60A"
android:type="linear" />
</shape>const diwaliDiyaGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF5A0F2E), Color(0xFFE85D04), Color(0xFFFFD60A)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: diwaliDiyaGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#5A0F2E', '#E85D04', '#FFD60A']}
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="diwali-diya" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#5A0F2E" />
<stop offset="50%" stop-color="#E85D04" />
<stop offset="100%" stop-color="#FFD60A" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#diwali-diya)" />
</svg>:root {
--diwali-diya-1: #5A0F2E;
--diwali-diya-2: #E85D04;
--diwali-diya-3: #FFD60A;
--diwali-diya-angle: 135deg;
--diwali-diya: linear-gradient(var(--diwali-diya-angle), var(--diwali-diya-1), var(--diwali-diya-2), var(--diwali-diya-3));
}
.hero {
background: var(--diwali-diya);
}$diwali-diya-1: #5A0F2E;
$diwali-diya-2: #E85D04;
$diwali-diya-3: #FFD60A;
$diwali-diya: linear-gradient(135deg, $diwali-diya-1, $diwali-diya-2, $diwali-diya-3);
@mixin diwali-diya-bg {
background: $diwali-diya-1;
background: $diwali-diya;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Deep pink | #5A0F2E | rgb(90, 15, 46) | hsl(335, 71%, 21%) |
| 2 | Orange | #E85D04 | rgb(232, 93, 4) | hsl(23, 97%, 46%) |
| 3 | Yellow | #FFD60A | rgb(255, 214, 10) | hsl(50, 100%, 52%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Diwali Diya gradient uses 3 colours: #5A0F2E, #E85D04 and #FFD60A, at an angle of 135°.
Paste background: linear-gradient(135deg, #5A0F2E, #E85D04, #FFD60A); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black 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.