Minecraft Gradient is a cool and bold 2-colour linear gradient that runs from green (#4E7F1C) to deep green (#3D6316) at 135°. It is inspired by Minecraft’s brand colours, a reference point for media interfaces. White text reads best on it, at a contrast ratio of 5.8:1 against the gradient’s average colour (AA). Check every point, not just the average →
Unofficial reference: inspired by Minecraft’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by Minecraft. Minecraft is a trademark of its owner. The CSS is free to use, but don’t use these colours to make your own product look like Minecraft’s. Terms
background: linear-gradient(135deg, #4E7F1C, #3D6316);
bg-gradient-to-br from-[#4E7F1C] to-[#3D6316]
{
"minecraft": {
"value": "linear-gradient(135deg, #4E7F1C 0%, #3D6316 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let minecraftGradient = LinearGradient(
colors: [
Color(red: 0.306, green: 0.498, blue: 0.11),
Color(red: 0.239, green: 0.388, blue: 0.086)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(minecraftGradient)val minecraftColors = listOf(Color(0xFF4E7F1C), Color(0xFF3D6316))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = minecraftColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/minecraft_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#4E7F1C"
android:endColor="#3D6316"
android:type="linear" />
</shape>const minecraftGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF4E7F1C), Color(0xFF3D6316)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: minecraftGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#4E7F1C', '#3D6316']}
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="minecraft" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#4E7F1C" />
<stop offset="100%" stop-color="#3D6316" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#minecraft)" />
</svg>:root {
--minecraft-1: #4E7F1C;
--minecraft-2: #3D6316;
--minecraft-angle: 135deg;
--minecraft: linear-gradient(var(--minecraft-angle), var(--minecraft-1), var(--minecraft-2));
}
.hero {
background: var(--minecraft);
}$minecraft-1: #4E7F1C;
$minecraft-2: #3D6316;
$minecraft: linear-gradient(135deg, $minecraft-1, $minecraft-2);
@mixin minecraft-bg {
background: $minecraft-1;
background: $minecraft;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Green | #4E7F1C | rgb(78, 127, 28) | hsl(90, 64%, 30%) |
| 2 | Deep green | #3D6316 | rgb(61, 99, 22) | hsl(90, 64%, 24%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Minecraft Gradient uses 2 colours: #4E7F1C and #3D6316, at an angle of 135°.
Paste background: linear-gradient(135deg, #4E7F1C, #3D6316); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 5.8:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.