← All gradients
35%How it works
Curated

Candy

#D3959B
#BFE6BA
Text readability
Curated WarmPastel

Candy is a warm and pastel 2-colour linear gradient that runs from light red (#D3959B) to pale green (#BFE6BA) at 135°. It suits hero sections and call-to-action buttons and soft backgrounds, cards and onboarding screens. Black text reads best on it, at a contrast ratio of 11.4:1 against the gradient’s average colour (AAA). Check every point, not just the average →

CSS
background: linear-gradient(135deg, #D3959B, #BFE6BA);
Tailwind
bg-gradient-to-br from-[#D3959B] to-[#BFE6BA]
Figma token
{
    "candy": {
        "value": "linear-gradient(135deg, #D3959B 0%, #BFE6BA 100%)",
        "type": "color"
    }
}

Candy gradient for SwiftUI, Flutter, Android and more

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

let candyGradient = LinearGradient(
    colors: [
        Color(red: 0.827, green: 0.584, blue: 0.608),
        Color(red: 0.749, green: 0.902, blue: 0.729)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(candyGradient)

Colours in the Candy gradient

StopNameHEXRGBHSL
1Light red#D3959Brgb(211, 149, 155)hsl(354, 41%, 71%)
2Pale green#BFE6BArgb(191, 230, 186)hsl(113, 47%, 82%)

Candy gradient in use

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

Candy 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 Candy gradient?

The Candy gradient uses 2 colours: #D3959B and #BFE6BA, at an angle of 135°.

How do I use the Candy gradient in CSS?

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

What text colour works on the Candy gradient?

Black text has the best contrast, at 11.4:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.