#FFF1F2
#FFE4E6
Error State is a warm and pastel 2-colour linear gradient that runs from off-white (#FFF1F2) to off-white (#FFE4E6) at 180°. It suits hero sections and call-to-action buttons and soft backgrounds, cards and onboarding screens. Black text reads best on it, at a contrast ratio of 18.3:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(180deg, #FFF1F2, #FFE4E6);
bg-gradient-to-b from-[#FFF1F2] to-[#FFE4E6]
{
"error-state": {
"value": "linear-gradient(180deg, #FFF1F2 0%, #FFE4E6 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let errorStateGradient = LinearGradient(
colors: [
Color(red: 1, green: 0.945, blue: 0.949),
Color(red: 1, green: 0.894, blue: 0.902)
],
startPoint: UnitPoint(x: 0.5, y: 0),
endPoint: UnitPoint(x: 0.5, y: 1)
)
// Usage
Rectangle().fill(errorStateGradient)val errorStateColors = listOf(Color(0xFFFFF1F2), Color(0xFFFFE4E6))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = errorStateColors,
start = Offset(size.width * 0.5f, size.height * 0f),
end = Offset(size.width * 0.5f, size.height * 1f)
)
)
}<!-- res/drawable/error-state_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#FFF1F2"
android:endColor="#FFE4E6"
android:type="linear" />
</shape>const errorStateGradient = LinearGradient(
begin: Alignment(0, -1),
end: Alignment(0, 1),
colors: [Color(0xFFFFF1F2), Color(0xFFFFE4E6)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: errorStateGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#FFF1F2', '#FFE4E6']}
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="error-state" x1="0.5" y1="0" x2="0.5" y2="1">
<stop offset="0%" stop-color="#FFF1F2" />
<stop offset="100%" stop-color="#FFE4E6" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#error-state)" />
</svg>:root {
--error-state-1: #FFF1F2;
--error-state-2: #FFE4E6;
--error-state-angle: 180deg;
--error-state: linear-gradient(var(--error-state-angle), var(--error-state-1), var(--error-state-2));
}
.hero {
background: var(--error-state);
}$error-state-1: #FFF1F2;
$error-state-2: #FFE4E6;
$error-state: linear-gradient(180deg, $error-state-1, $error-state-2);
@mixin error-state-bg {
background: $error-state-1;
background: $error-state;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Off-white | #FFF1F2 | rgb(255, 241, 242) | hsl(356, 100%, 97%) |
| 2 | Off-white | #FFE4E6 | rgb(255, 228, 230) | hsl(356, 100%, 95%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Error State gradient uses 2 colours: #FFF1F2 and #FFE4E6, at an angle of 180°.
Paste background: linear-gradient(180deg, #FFF1F2, #FFE4E6); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 18.3:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.