#F0FDF4
#DCFCE7
Success State is a cool and pastel 2-colour linear gradient that runs from off-white (#F0FDF4) to off-white (#DCFCE7) at 180°. It suits dashboards and SaaS landing pages and soft backgrounds, cards and onboarding screens. Black text reads best on it, at a contrast ratio of 19.6:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(180deg, #F0FDF4, #DCFCE7);
bg-gradient-to-b from-[#F0FDF4] to-[#DCFCE7]
{
"success-state": {
"value": "linear-gradient(180deg, #F0FDF4 0%, #DCFCE7 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let successStateGradient = LinearGradient(
colors: [
Color(red: 0.941, green: 0.992, blue: 0.957),
Color(red: 0.863, green: 0.988, blue: 0.906)
],
startPoint: UnitPoint(x: 0.5, y: 0),
endPoint: UnitPoint(x: 0.5, y: 1)
)
// Usage
Rectangle().fill(successStateGradient)val successStateColors = listOf(Color(0xFFF0FDF4), Color(0xFFDCFCE7))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = successStateColors,
start = Offset(size.width * 0.5f, size.height * 0f),
end = Offset(size.width * 0.5f, size.height * 1f)
)
)
}<!-- res/drawable/success-state_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#F0FDF4"
android:endColor="#DCFCE7"
android:type="linear" />
</shape>const successStateGradient = LinearGradient(
begin: Alignment(0, -1),
end: Alignment(0, 1),
colors: [Color(0xFFF0FDF4), Color(0xFFDCFCE7)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: successStateGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#F0FDF4', '#DCFCE7']}
start={{ x: 0.5, y: 0 }}
end={{ x: 0.5, 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="success-state" x1="0.5" y1="0" x2="0.5" y2="1">
<stop offset="0%" stop-color="#F0FDF4" />
<stop offset="100%" stop-color="#DCFCE7" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#success-state)" />
</svg>:root {
--success-state-1: #F0FDF4;
--success-state-2: #DCFCE7;
--success-state-angle: 180deg;
--success-state: linear-gradient(var(--success-state-angle), var(--success-state-1), var(--success-state-2));
}
.hero {
background: var(--success-state);
}$success-state-1: #F0FDF4;
$success-state-2: #DCFCE7;
$success-state: linear-gradient(180deg, $success-state-1, $success-state-2);
@mixin success-state-bg {
background: $success-state-1;
background: $success-state;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Off-white | #F0FDF4 | rgb(240, 253, 244) | hsl(138, 76%, 97%) |
| 2 | Off-white | #DCFCE7 | rgb(220, 252, 231) | hsl(141, 84%, 93%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Success State gradient uses 2 colours: #F0FDF4 and #DCFCE7, at an angle of 180°.
Paste background: linear-gradient(180deg, #F0FDF4, #DCFCE7); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 19.6:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.