#F9FAFB
#F3F4F6
Table Header is a neutral and pastel 2-colour linear gradient that runs from off-white (#F9FAFB) to off-white (#F3F4F6) 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 19.6:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(180deg, #F9FAFB, #F3F4F6);
bg-gradient-to-b from-[#F9FAFB] to-[#F3F4F6]
{
"table-header": {
"value": "linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let tableHeaderGradient = LinearGradient(
colors: [
Color(red: 0.976, green: 0.98, blue: 0.984),
Color(red: 0.953, green: 0.957, blue: 0.965)
],
startPoint: UnitPoint(x: 0.5, y: 0),
endPoint: UnitPoint(x: 0.5, y: 1)
)
// Usage
Rectangle().fill(tableHeaderGradient)val tableHeaderColors = listOf(Color(0xFFF9FAFB), Color(0xFFF3F4F6))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = tableHeaderColors,
start = Offset(size.width * 0.5f, size.height * 0f),
end = Offset(size.width * 0.5f, size.height * 1f)
)
)
}<!-- res/drawable/table-header_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#F9FAFB"
android:endColor="#F3F4F6"
android:type="linear" />
</shape>const tableHeaderGradient = LinearGradient(
begin: Alignment(0, -1),
end: Alignment(0, 1),
colors: [Color(0xFFF9FAFB), Color(0xFFF3F4F6)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: tableHeaderGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#F9FAFB', '#F3F4F6']}
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="table-header" x1="0.5" y1="0" x2="0.5" y2="1">
<stop offset="0%" stop-color="#F9FAFB" />
<stop offset="100%" stop-color="#F3F4F6" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#table-header)" />
</svg>:root {
--table-header-1: #F9FAFB;
--table-header-2: #F3F4F6;
--table-header-angle: 180deg;
--table-header: linear-gradient(var(--table-header-angle), var(--table-header-1), var(--table-header-2));
}
.hero {
background: var(--table-header);
}$table-header-1: #F9FAFB;
$table-header-2: #F3F4F6;
$table-header: linear-gradient(180deg, $table-header-1, $table-header-2);
@mixin table-header-bg {
background: $table-header-1;
background: $table-header;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Off-white | #F9FAFB | rgb(249, 250, 251) | hsl(210, 20%, 98%) |
| 2 | Off-white | #F3F4F6 | rgb(243, 244, 246) | hsl(220, 14%, 96%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Table Header gradient uses 2 colours: #F9FAFB and #F3F4F6, at an angle of 180°.
Paste background: linear-gradient(180deg, #F9FAFB, #F3F4F6); 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.