← All gradients
35%How it works
Raspberry Pi ↗

Raspberry Pi Gradient

#C51A4A
#6CC04A
Text readability
Brand Warm Tech

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

CSS
background: linear-gradient(135deg, #C51A4A, #6CC04A);
Tailwind
bg-gradient-to-br from-[#C51A4A] to-[#6CC04A]
Figma token
{
    "raspberry-pi": {
        "value": "linear-gradient(135deg, #C51A4A 0%, #6CC04A 100%)",
        "type": "color"
    }
}

Raspberry Pi Gradient for SwiftUI, Flutter, Android and more

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)

Colours in the Raspberry Pi Gradient

StopNameHEXRGBHSL
1Pink#C51A4Argb(197, 26, 74)hsl(343, 77%, 44%)
2Green#6CC04Argb(108, 192, 74)hsl(103, 48%, 52%)

Raspberry Pi Gradient in use

Build something beautifulA hero section on the Raspberry Pi GradientGet started
Button
Card accentAs a border or progress bar
Gradient text

Raspberry Pi Gradient variations

Reversed
Horizontal
Radial
Conic
Softer
Deeper
Smooth (OKLCH)
Hard stops

Download as an image

Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.

Frequently asked questions

What are the hex codes for the Raspberry Pi Gradient?

The Raspberry Pi Gradient uses 2 colours: #C51A4A and #6CC04A, at an angle of 135°.

How do I use the Raspberry Pi Gradient in CSS?

Paste background: linear-gradient(135deg, #C51A4A, #6CC04A); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Raspberry Pi Gradient?

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.