#0A2E1C
#146B3A
#F8B229
Christmas Tree is a dark and bold 3-colour linear gradient that runs from near-black (#0A2E1C) through deep green (#146B3A) to orange (#F8B229) at 160°. It suits dark-mode interfaces and footers and banners and attention-grabbing headers. White text reads best on it, at a contrast ratio of 5.6:1 against the gradient’s average colour (AA). Check every point, not just the average →
background: linear-gradient(160deg, #0A2E1C, #146B3A, #F8B229);
bg-[linear-gradient(160deg,#0A2E1C,#146B3A,#F8B229)]
{
"christmas-tree": {
"value": "linear-gradient(160deg, #0A2E1C 0%, #146B3A 50%, #F8B229 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let christmasTreeGradient = LinearGradient(
colors: [
Color(red: 0.039, green: 0.18, blue: 0.11),
Color(red: 0.078, green: 0.42, blue: 0.227),
Color(red: 0.973, green: 0.698, blue: 0.161)
],
startPoint: UnitPoint(x: 0.318, y: 0),
endPoint: UnitPoint(x: 0.682, y: 1)
)
// Usage
Rectangle().fill(christmasTreeGradient)val christmasTreeColors = listOf(Color(0xFF0A2E1C), Color(0xFF146B3A), Color(0xFFF8B229))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = christmasTreeColors,
start = Offset(size.width * 0.318f, size.height * 0f),
end = Offset(size.width * 0.682f, size.height * 1f)
)
)
}<!-- res/drawable/christmas-tree_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#0A2E1C"
android:centerColor="#146B3A"
android:endColor="#F8B229"
android:type="linear" />
</shape>
<!-- Android only takes multiples of 45°: 160deg in CSS is 290°, rounded to 270°. -->const christmasTreeGradient = LinearGradient(
begin: Alignment(-0.364, -1),
end: Alignment(0.364, 1),
colors: [Color(0xFF0A2E1C), Color(0xFF146B3A), Color(0xFFF8B229)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: christmasTreeGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#0A2E1C', '#146B3A', '#F8B229']}
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="christmas-tree" x1="0.318" y1="0" x2="0.682" y2="1">
<stop offset="0%" stop-color="#0A2E1C" />
<stop offset="50%" stop-color="#146B3A" />
<stop offset="100%" stop-color="#F8B229" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#christmas-tree)" />
</svg>:root {
--christmas-tree-1: #0A2E1C;
--christmas-tree-2: #146B3A;
--christmas-tree-3: #F8B229;
--christmas-tree-angle: 160deg;
--christmas-tree: linear-gradient(var(--christmas-tree-angle), var(--christmas-tree-1), var(--christmas-tree-2), var(--christmas-tree-3));
}
.hero {
background: var(--christmas-tree);
}$christmas-tree-1: #0A2E1C;
$christmas-tree-2: #146B3A;
$christmas-tree-3: #F8B229;
$christmas-tree: linear-gradient(160deg, $christmas-tree-1, $christmas-tree-2, $christmas-tree-3);
@mixin christmas-tree-bg {
background: $christmas-tree-1;
background: $christmas-tree;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Near-black | #0A2E1C | rgb(10, 46, 28) | hsl(150, 64%, 11%) |
| 2 | Deep green | #146B3A | rgb(20, 107, 58) | hsl(146, 69%, 25%) |
| 3 | Orange | #F8B229 | rgb(248, 178, 41) | hsl(40, 94%, 57%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Christmas Tree gradient uses 3 colours: #0A2E1C, #146B3A and #F8B229, at an angle of 160°.
Paste background: linear-gradient(160deg, #0A2E1C, #146B3A, #F8B229); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 5.6:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.