← All gradients
35%How it works
UI

Dropdown Shadow

#FFFFFF
#F8FAFC
Text readability
Ui NeutralPastel

Dropdown Shadow 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
{
    "dropdown-shadow": {
        "value": "linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%)",
        "type": "color"
    }
}

Dropdown Shadow gradient for SwiftUI, Flutter, Android and more

The same gradient, same direction, ready for your app or design system.

let dropdownShadowGradient = 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(dropdownShadowGradient)

Colours in the Dropdown Shadow gradient

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

Dropdown Shadow gradient in use

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

Dropdown Shadow 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 Dropdown Shadow gradient?

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

How do I use the Dropdown Shadow 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 Dropdown Shadow 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.