← All gradients
35%How it works
UI

Notification Badge

#EF4444
#DC2626
Text readability
Ui WarmBold

Notification Badge 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
{
    "notification-badge": {
        "value": "linear-gradient(135deg, #EF4444 0%, #DC2626 100%)",
        "type": "color"
    }
}

Notification Badge gradient for SwiftUI, Flutter, Android and more

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

let notificationBadgeGradient = 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(notificationBadgeGradient)

Colours in the Notification Badge gradient

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

Notification Badge gradient in use

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

Notification Badge 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 Notification Badge gradient?

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

How do I use the Notification Badge 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 Notification Badge 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.