McDonald’s Gradient is a warm and bold 2-colour linear gradient that runs from yellow (#FFC300) to red (#DA291C) at 135°. It is inspired by McDonald's’s brand colours, a reference point for food interfaces. Black text reads best on it, at a contrast ratio of 7.2:1 against the gradient’s average colour (AAA). Check every point, not just the average →
Unofficial reference: inspired by McDonald's’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by McDonald's. McDonald's 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 McDonald's’s. Terms
background: linear-gradient(135deg, #FFC300, #DA291C);
bg-gradient-to-br from-[#FFC300] to-[#DA291C]
{
"mcdonald-8217-s": {
"value": "linear-gradient(135deg, #FFC300 0%, #DA291C 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let mcdonald8217SGradient = LinearGradient(
colors: [
Color(red: 1, green: 0.765, blue: 0),
Color(red: 0.855, green: 0.161, blue: 0.11)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(mcdonald8217SGradient)val mcdonald8217SColors = listOf(Color(0xFFFFC300), Color(0xFFDA291C))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = mcdonald8217SColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/mcdonald-8217-s_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#FFC300"
android:endColor="#DA291C"
android:type="linear" />
</shape>const mcdonald8217SGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFFFFC300), Color(0xFFDA291C)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: mcdonald8217SGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#FFC300', '#DA291C']}
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="mcdonald-8217-s" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#FFC300" />
<stop offset="100%" stop-color="#DA291C" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#mcdonald-8217-s)" />
</svg>:root {
--mcdonald-8217-s-1: #FFC300;
--mcdonald-8217-s-2: #DA291C;
--mcdonald-8217-s-angle: 135deg;
--mcdonald-8217-s: linear-gradient(var(--mcdonald-8217-s-angle), var(--mcdonald-8217-s-1), var(--mcdonald-8217-s-2));
}
.hero {
background: var(--mcdonald-8217-s);
}$mcdonald-8217-s-1: #FFC300;
$mcdonald-8217-s-2: #DA291C;
$mcdonald-8217-s: linear-gradient(135deg, $mcdonald-8217-s-1, $mcdonald-8217-s-2);
@mixin mcdonald-8217-s-bg {
background: $mcdonald-8217-s-1;
background: $mcdonald-8217-s;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Yellow | #FFC300 | rgb(255, 195, 0) | hsl(46, 100%, 50%) |
| 2 | Red | #DA291C | rgb(218, 41, 28) | hsl(4, 77%, 48%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The McDonald’s Gradient uses 2 colours: #FFC300 and #DA291C, at an angle of 135°.
Paste background: linear-gradient(135deg, #FFC300, #DA291C); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 7.2:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.