← All gradients
35%How it works
UI

Sidebar Light

#FFFFFF
#F8FAFC
Text readability
Ui NeutralPastel

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 →

CSS
background: linear-gradient(180deg, #FFFFFF, #F8FAFC);
Tailwind
bg-gradient-to-b from-[#FFFFFF] to-[#F8FAFC]
Figma token
{
    "sidebar-light": {
        "value": "linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%)",
        "type": "color"
    }
}

Sidebar Light gradient for SwiftUI, Flutter, Android and more

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)

Colours in the Sidebar Light gradient

StopNameHEXRGBHSL
1Off-white#FFFFFFrgb(255, 255, 255)hsl(0, 0%, 100%)
2Off-white#F8FAFCrgb(248, 250, 252)hsl(210, 40%, 98%)

Sidebar Light gradient in use

Build something beautifulA hero section on the Sidebar Light gradientGet started
Button
Card accentAs a border or progress bar
Gradient text

Sidebar Light gradient variations

Reversed
Horizontal
Radial
Conic
Softer
Deeper
Smooth (OKLCH)
Hard stops

Download as an image

Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.

Frequently asked questions

What are the hex codes for the Sidebar Light gradient?

The Sidebar Light gradient uses 2 colours: #FFFFFF and #F8FAFC, at an angle of 180°.

How do I use the Sidebar Light gradient in CSS?

Paste background: linear-gradient(180deg, #FFFFFF, #F8FAFC); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Sidebar Light gradient?

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.