← All gradients
35%How it works
UI

Success State

#F0FDF4
#DCFCE7
Text readability
Ui CoolPastel

Success State is a cool and pastel 2-colour linear gradient that runs from off-white (#F0FDF4) to off-white (#DCFCE7) at 180°. It suits dashboards and SaaS landing pages 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 →

CSS
background: linear-gradient(180deg, #F0FDF4, #DCFCE7);
Tailwind
bg-gradient-to-b from-[#F0FDF4] to-[#DCFCE7]
Figma token
{
    "success-state": {
        "value": "linear-gradient(180deg, #F0FDF4 0%, #DCFCE7 100%)",
        "type": "color"
    }
}

Success State gradient for SwiftUI, Flutter, Android and more

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

let successStateGradient = LinearGradient(
    colors: [
        Color(red: 0.941, green: 0.992, blue: 0.957),
        Color(red: 0.863, green: 0.988, blue: 0.906)
    ],
    startPoint: UnitPoint(x: 0.5, y: 0),
    endPoint: UnitPoint(x: 0.5, y: 1)
)

// Usage
Rectangle().fill(successStateGradient)

Colours in the Success State gradient

StopNameHEXRGBHSL
1Off-white#F0FDF4rgb(240, 253, 244)hsl(138, 76%, 97%)
2Off-white#DCFCE7rgb(220, 252, 231)hsl(141, 84%, 93%)

Success State gradient in use

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

Success State 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 Success State gradient?

The Success State gradient uses 2 colours: #F0FDF4 and #DCFCE7, at an angle of 180°.

How do I use the Success State gradient in CSS?

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

What text colour works on the Success State gradient?

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.