← All gradients
35%How it works
UI

Toast Error

#EF4444
#DC2626
Text readability
Ui WarmBold

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

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

Toast Error gradient for SwiftUI, Flutter, Android and more

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

let toastErrorGradient = LinearGradient(
    colors: [
        Color(red: 0.937, green: 0.267, blue: 0.267),
        Color(red: 0.863, green: 0.149, blue: 0.149)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(toastErrorGradient)

Colours in the Toast Error gradient

StopNameHEXRGBHSL
1Red#EF4444rgb(239, 68, 68)hsl(0, 84%, 60%)
2Red#DC2626rgb(220, 38, 38)hsl(0, 72%, 51%)

Toast Error gradient in use

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

Toast Error 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 Toast Error gradient?

The Toast Error gradient uses 2 colours: #EF4444 and #DC2626, at an angle of 135°.

How do I use the Toast Error gradient in CSS?

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

What text colour works on the Toast Error gradient?

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