Google Gradient is a bold 3-colour linear gradient that runs from blue (#4285F4) through green (#34A853) to red (#EA4335) at 45°. It is inspired by Google’s brand colours, a reference point for tech interfaces. Black text reads best on it, at a contrast ratio of 4.9:1 against the gradient’s average colour (AA). Check every point, not just the average →
Unofficial reference: inspired by Google’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by Google. Google 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 Google’s. Terms
background: linear-gradient(45deg, #4285F4, #34A853, #EA4335);
bg-gradient-to-tr from-[#4285F4] via-[#34A853] to-[#EA4335]
{
"google": {
"value": "linear-gradient(45deg, #4285F4 0%, #34A853 50%, #EA4335 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let googleGradient = LinearGradient(
colors: [
Color(red: 0.259, green: 0.522, blue: 0.957),
Color(red: 0.204, green: 0.659, blue: 0.325),
Color(red: 0.918, green: 0.263, blue: 0.208)
],
startPoint: UnitPoint(x: 0, y: 1),
endPoint: UnitPoint(x: 1, y: 0)
)
// Usage
Rectangle().fill(googleGradient)val googleColors = listOf(Color(0xFF4285F4), Color(0xFF34A853), Color(0xFFEA4335))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = googleColors,
start = Offset(size.width * 0f, size.height * 1f),
end = Offset(size.width * 1f, size.height * 0f)
)
)
}<!-- res/drawable/google_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="45"
android:startColor="#4285F4"
android:centerColor="#34A853"
android:endColor="#EA4335"
android:type="linear" />
</shape>const googleGradient = LinearGradient(
begin: Alignment(-1, 1),
end: Alignment(1, -1),
colors: [Color(0xFF4285F4), Color(0xFF34A853), Color(0xFFEA4335)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: googleGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#4285F4', '#34A853', '#EA4335']}
start={{ x: 0, y: 1 }}
end={{ x: 1, y: 0 }}
style={{ flex: 1 }}
/><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<defs>
<linearGradient id="google" x1="0" y1="1" x2="1" y2="0">
<stop offset="0%" stop-color="#4285F4" />
<stop offset="50%" stop-color="#34A853" />
<stop offset="100%" stop-color="#EA4335" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#google)" />
</svg>:root {
--google-1: #4285F4;
--google-2: #34A853;
--google-3: #EA4335;
--google-angle: 45deg;
--google: linear-gradient(var(--google-angle), var(--google-1), var(--google-2), var(--google-3));
}
.hero {
background: var(--google);
}$google-1: #4285F4;
$google-2: #34A853;
$google-3: #EA4335;
$google: linear-gradient(45deg, $google-1, $google-2, $google-3);
@mixin google-bg {
background: $google-1;
background: $google;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Blue | #4285F4 | rgb(66, 133, 244) | hsl(217, 89%, 61%) |
| 2 | Green | #34A853 | rgb(52, 168, 83) | hsl(136, 53%, 43%) |
| 3 | Red | #EA4335 | rgb(234, 67, 53) | hsl(5, 81%, 56%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Google Gradient uses 3 colours: #4285F4, #34A853 and #EA4335, at an angle of 45°.
Paste background: linear-gradient(45deg, #4285F4, #34A853, #EA4335); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 4.9:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.