MyFitnessPal Gradient is a cool 2-colour linear gradient that runs from blue (#0072CE) to blue (#005299) at 135°. It is inspired by MyFitnessPal’s brand colours, a reference point for health interfaces. White text reads best on it, at a contrast ratio of 6.2:1 against the gradient’s average colour (AA). Check every point, not just the average →
Unofficial reference: inspired by MyFitnessPal’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by MyFitnessPal. MyFitnessPal 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 MyFitnessPal’s. Terms
background: linear-gradient(135deg, #0072CE, #005299);
bg-gradient-to-br from-[#0072CE] to-[#005299]
{
"myfitnesspal": {
"value": "linear-gradient(135deg, #0072CE 0%, #005299 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let myfitnesspalGradient = LinearGradient(
colors: [
Color(red: 0, green: 0.447, blue: 0.808),
Color(red: 0, green: 0.322, blue: 0.6)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(myfitnesspalGradient)val myfitnesspalColors = listOf(Color(0xFF0072CE), Color(0xFF005299))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = myfitnesspalColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/myfitnesspal_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#0072CE"
android:endColor="#005299"
android:type="linear" />
</shape>const myfitnesspalGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFF0072CE), Color(0xFF005299)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: myfitnesspalGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#0072CE', '#005299']}
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="myfitnesspal" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#0072CE" />
<stop offset="100%" stop-color="#005299" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#myfitnesspal)" />
</svg>:root {
--myfitnesspal-1: #0072CE;
--myfitnesspal-2: #005299;
--myfitnesspal-angle: 135deg;
--myfitnesspal: linear-gradient(var(--myfitnesspal-angle), var(--myfitnesspal-1), var(--myfitnesspal-2));
}
.hero {
background: var(--myfitnesspal);
}$myfitnesspal-1: #0072CE;
$myfitnesspal-2: #005299;
$myfitnesspal: linear-gradient(135deg, $myfitnesspal-1, $myfitnesspal-2);
@mixin myfitnesspal-bg {
background: $myfitnesspal-1;
background: $myfitnesspal;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Blue | #0072CE | rgb(0, 114, 206) | hsl(207, 100%, 40%) |
| 2 | Blue | #005299 | rgb(0, 82, 153) | hsl(208, 100%, 30%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The MyFitnessPal Gradient uses 2 colours: #0072CE and #005299, at an angle of 135°.
Paste background: linear-gradient(135deg, #0072CE, #005299); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
White text has the best contrast, at 6.2:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.