← All gradients
35%How it works
UI

Button Danger

#DC2626
#B91C1C
Text readability
Ui WarmBold

Button Danger is a warm and bold 2-colour linear gradient that runs from red (#DC2626) to red (#B91C1C) at 135°. It suits hero sections and call-to-action buttons and banners and attention-grabbing headers. White text reads best on it, at a contrast ratio of 5.6:1 against the gradient’s average colour (AA). Check every point, not just the average →

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

Button Danger gradient for SwiftUI, Flutter, Android and more

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

let buttonDangerGradient = LinearGradient(
    colors: [
        Color(red: 0.863, green: 0.149, blue: 0.149),
        Color(red: 0.725, green: 0.11, blue: 0.11)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(buttonDangerGradient)

Colours in the Button Danger gradient

StopNameHEXRGBHSL
1Red#DC2626rgb(220, 38, 38)hsl(0, 72%, 51%)
2Red#B91C1Crgb(185, 28, 28)hsl(0, 74%, 42%)

Button Danger gradient in use

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

Button Danger 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 Button Danger gradient?

The Button Danger gradient uses 2 colours: #DC2626 and #B91C1C, at an angle of 135°.

How do I use the Button Danger gradient in CSS?

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

What text colour works on the Button Danger gradient?

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