#D4000A
#F5C518
Lunar New Year is a warm and bold 2-colour linear gradient that runs from red (#D4000A) to yellow (#F5C518) 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 6.1:1 against the gradient’s average colour (AA). Check every point, not just the average →
background: linear-gradient(135deg, #D4000A, #F5C518);
bg-gradient-to-br from-[#D4000A] to-[#F5C518]
{
"lunar-new-year": {
"value": "linear-gradient(135deg, #D4000A 0%, #F5C518 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let lunarNewYearGradient = LinearGradient(
colors: [
Color(red: 0.831, green: 0, blue: 0.039),
Color(red: 0.961, green: 0.773, blue: 0.094)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(lunarNewYearGradient)val lunarNewYearColors = listOf(Color(0xFFD4000A), Color(0xFFF5C518))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = lunarNewYearColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/lunar-new-year_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#D4000A"
android:endColor="#F5C518"
android:type="linear" />
</shape>const lunarNewYearGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFFD4000A), Color(0xFFF5C518)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: lunarNewYearGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#D4000A', '#F5C518']}
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="lunar-new-year" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#D4000A" />
<stop offset="100%" stop-color="#F5C518" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#lunar-new-year)" />
</svg>:root {
--lunar-new-year-1: #D4000A;
--lunar-new-year-2: #F5C518;
--lunar-new-year-angle: 135deg;
--lunar-new-year: linear-gradient(var(--lunar-new-year-angle), var(--lunar-new-year-1), var(--lunar-new-year-2));
}
.hero {
background: var(--lunar-new-year);
}$lunar-new-year-1: #D4000A;
$lunar-new-year-2: #F5C518;
$lunar-new-year: linear-gradient(135deg, $lunar-new-year-1, $lunar-new-year-2);
@mixin lunar-new-year-bg {
background: $lunar-new-year-1;
background: $lunar-new-year;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Red | #D4000A | rgb(212, 0, 10) | hsl(357, 100%, 42%) |
| 2 | Yellow | #F5C518 | rgb(245, 197, 24) | hsl(47, 92%, 53%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Lunar New Year gradient uses 2 colours: #D4000A and #F5C518, at an angle of 135°.
Paste background: linear-gradient(135deg, #D4000A, #F5C518); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 6.1:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.