← All gradients
35%How it works
UI

Toast Warning

#F59E0B
#D97706
Text readability
Ui WarmBold

Toast Warning is a warm and bold 2-colour linear gradient that runs from orange (#F59E0B) to orange (#D97706) 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 8.1:1 against the gradient’s average colour (AAA). Check every point, not just the average →

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

Toast Warning gradient for SwiftUI, Flutter, Android and more

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

let toastWarningGradient = LinearGradient(
    colors: [
        Color(red: 0.961, green: 0.62, blue: 0.043),
        Color(red: 0.851, green: 0.467, blue: 0.024)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(toastWarningGradient)

Colours in the Toast Warning gradient

StopNameHEXRGBHSL
1Orange#F59E0Brgb(245, 158, 11)hsl(38, 92%, 50%)
2Orange#D97706rgb(217, 119, 6)hsl(32, 95%, 44%)

Toast Warning gradient in use

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

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

The Toast Warning gradient uses 2 colours: #F59E0B and #D97706, at an angle of 135°.

How do I use the Toast Warning gradient in CSS?

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

What text colour works on the Toast Warning gradient?

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