#FFFFFF
#F8FAFC
Sidebar Light is a neutral and pastel 2-colour linear gradient that runs from off-white (#FFFFFF) to off-white (#F8FAFC) at 180°. It suits subtle surfaces and app backgrounds and soft backgrounds, cards and onboarding screens. Black text reads best on it, at a contrast ratio of 20.5:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(180deg, #FFFFFF, #F8FAFC);
bg-gradient-to-b from-[#FFFFFF] to-[#F8FAFC]
{
"sidebar-light": {
"value": "linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let sidebarLightGradient = LinearGradient(
colors: [
Color(red: 1, green: 1, blue: 1),
Color(red: 0.973, green: 0.98, blue: 0.988)
],
startPoint: UnitPoint(x: 0.5, y: 0),
endPoint: UnitPoint(x: 0.5, y: 1)
)
// Usage
Rectangle().fill(sidebarLightGradient)val sidebarLightColors = listOf(Color(0xFFFFFFFF), Color(0xFFF8FAFC))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = sidebarLightColors,
start = Offset(size.width * 0.5f, size.height * 0f),
end = Offset(size.width * 0.5f, size.height * 1f)
)
)
}<!-- res/drawable/sidebar-light_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#FFFFFF"
android:endColor="#F8FAFC"
android:type="linear" />
</shape>const sidebarLightGradient = LinearGradient(
begin: Alignment(0, -1),
end: Alignment(0, 1),
colors: [Color(0xFFFFFFFF), Color(0xFFF8FAFC)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: sidebarLightGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#FFFFFF', '#F8FAFC']}
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="sidebar-light" x1="0.5" y1="0" x2="0.5" y2="1">
<stop offset="0%" stop-color="#FFFFFF" />
<stop offset="100%" stop-color="#F8FAFC" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#sidebar-light)" />
</svg>:root {
--sidebar-light-1: #FFFFFF;
--sidebar-light-2: #F8FAFC;
--sidebar-light-angle: 180deg;
--sidebar-light: linear-gradient(var(--sidebar-light-angle), var(--sidebar-light-1), var(--sidebar-light-2));
}
.hero {
background: var(--sidebar-light);
}$sidebar-light-1: #FFFFFF;
$sidebar-light-2: #F8FAFC;
$sidebar-light: linear-gradient(180deg, $sidebar-light-1, $sidebar-light-2);
@mixin sidebar-light-bg {
background: $sidebar-light-1;
background: $sidebar-light;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Off-white | #FFFFFF | rgb(255, 255, 255) | hsl(0, 0%, 100%) |
| 2 | Off-white | #F8FAFC | rgb(248, 250, 252) | hsl(210, 40%, 98%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Sidebar Light gradient uses 2 colours: #FFFFFF and #F8FAFC, at an angle of 180°.
Paste background: linear-gradient(180deg, #FFFFFF, #F8FAFC); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 20.5:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.