#F4F4F5
#E4E4E7
Disabled State is a neutral 2-colour linear gradient that runs from off-white (#F4F4F5) to light grey (#E4E4E7) at 135°. It suits subtle surfaces and app backgrounds. Black text reads best on it, at a contrast ratio of 17.8:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(135deg, #F4F4F5, #E4E4E7);
bg-gradient-to-br from-[#F4F4F5] to-[#E4E4E7]
{
"disabled-state": {
"value": "linear-gradient(135deg, #F4F4F5 0%, #E4E4E7 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let disabledStateGradient = LinearGradient(
colors: [
Color(red: 0.957, green: 0.957, blue: 0.961),
Color(red: 0.894, green: 0.894, blue: 0.906)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(disabledStateGradient)val disabledStateColors = listOf(Color(0xFFF4F4F5), Color(0xFFE4E4E7))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = disabledStateColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/disabled-state_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#F4F4F5"
android:endColor="#E4E4E7"
android:type="linear" />
</shape>const disabledStateGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFFF4F4F5), Color(0xFFE4E4E7)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: disabledStateGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#F4F4F5', '#E4E4E7']}
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="disabled-state" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#F4F4F5" />
<stop offset="100%" stop-color="#E4E4E7" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#disabled-state)" />
</svg>:root {
--disabled-state-1: #F4F4F5;
--disabled-state-2: #E4E4E7;
--disabled-state-angle: 135deg;
--disabled-state: linear-gradient(var(--disabled-state-angle), var(--disabled-state-1), var(--disabled-state-2));
}
.hero {
background: var(--disabled-state);
}$disabled-state-1: #F4F4F5;
$disabled-state-2: #E4E4E7;
$disabled-state: linear-gradient(135deg, $disabled-state-1, $disabled-state-2);
@mixin disabled-state-bg {
background: $disabled-state-1;
background: $disabled-state;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Off-white | #F4F4F5 | rgb(244, 244, 245) | hsl(240, 5%, 96%) |
| 2 | Light grey | #E4E4E7 | rgb(228, 228, 231) | hsl(240, 6%, 90%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Disabled State gradient uses 2 colours: #F4F4F5 and #E4E4E7, at an angle of 135°.
Paste background: linear-gradient(135deg, #F4F4F5, #E4E4E7); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 17.8:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.