Raspberry Pi Gradient is a warm 2-colour linear gradient that runs from pink (#C51A4A) to green (#6CC04A) at 135°. It is inspired by Raspberry Pi’s brand colours, a reference point for tech interfaces. Black text reads best on it, at a contrast ratio of 4.6:1 against the gradient’s average colour (AA). Check every point, not just the average →
Unofficial reference: inspired by Raspberry Pi’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by Raspberry Pi. Raspberry Pi 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 Raspberry Pi’s. Terms
background: linear-gradient(135deg, #C51A4A, #6CC04A);
bg-gradient-to-br from-[#C51A4A] to-[#6CC04A]
{
"raspberry-pi": {
"value": "linear-gradient(135deg, #C51A4A 0%, #6CC04A 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let raspberryPiGradient = LinearGradient(
colors: [
Color(red: 0.773, green: 0.102, blue: 0.29),
Color(red: 0.424, green: 0.753, blue: 0.29)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(raspberryPiGradient)val raspberryPiColors = listOf(Color(0xFFC51A4A), Color(0xFF6CC04A))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = raspberryPiColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/raspberry-pi_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#C51A4A"
android:endColor="#6CC04A"
android:type="linear" />
</shape>const raspberryPiGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFFC51A4A), Color(0xFF6CC04A)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: raspberryPiGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#C51A4A', '#6CC04A']}
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="raspberry-pi" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#C51A4A" />
<stop offset="100%" stop-color="#6CC04A" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#raspberry-pi)" />
</svg>:root {
--raspberry-pi-1: #C51A4A;
--raspberry-pi-2: #6CC04A;
--raspberry-pi-angle: 135deg;
--raspberry-pi: linear-gradient(var(--raspberry-pi-angle), var(--raspberry-pi-1), var(--raspberry-pi-2));
}
.hero {
background: var(--raspberry-pi);
}$raspberry-pi-1: #C51A4A;
$raspberry-pi-2: #6CC04A;
$raspberry-pi: linear-gradient(135deg, $raspberry-pi-1, $raspberry-pi-2);
@mixin raspberry-pi-bg {
background: $raspberry-pi-1;
background: $raspberry-pi;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Pink | #C51A4A | rgb(197, 26, 74) | hsl(343, 77%, 44%) |
| 2 | Green | #6CC04A | rgb(108, 192, 74) | hsl(103, 48%, 52%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Raspberry Pi Gradient uses 2 colours: #C51A4A and #6CC04A, at an angle of 135°.
Paste background: linear-gradient(135deg, #C51A4A, #6CC04A); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 4.6:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.