#EF4444
#DC2626
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 →
background: linear-gradient(135deg, #EF4444, #DC2626);
bg-gradient-to-br from-[#EF4444] to-[#DC2626]
{
"notification-badge": {
"value": "linear-gradient(135deg, #EF4444 0%, #DC2626 100%)",
"type": "color"
}
}
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)val notificationBadgeColors = listOf(Color(0xFFEF4444), Color(0xFFDC2626))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = notificationBadgeColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/notification-badge_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#EF4444"
android:endColor="#DC2626"
android:type="linear" />
</shape>const notificationBadgeGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFFEF4444), Color(0xFFDC2626)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: notificationBadgeGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#EF4444', '#DC2626']}
start={{ x: 0, y: 0 }}
end={{ x: 1, y: 1 }}
style={{ flex: 1 }}
/><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<defs>
<linearGradient id="notification-badge" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#EF4444" />
<stop offset="100%" stop-color="#DC2626" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#notification-badge)" />
</svg>:root {
--notification-badge-1: #EF4444;
--notification-badge-2: #DC2626;
--notification-badge-angle: 135deg;
--notification-badge: linear-gradient(var(--notification-badge-angle), var(--notification-badge-1), var(--notification-badge-2));
}
.hero {
background: var(--notification-badge);
}$notification-badge-1: #EF4444;
$notification-badge-2: #DC2626;
$notification-badge: linear-gradient(135deg, $notification-badge-1, $notification-badge-2);
@mixin notification-badge-bg {
background: $notification-badge-1;
background: $notification-badge;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Red | #EF4444 | rgb(239, 68, 68) | hsl(0, 84%, 60%) |
| 2 | Red | #DC2626 | rgb(220, 38, 38) | hsl(0, 72%, 51%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Notification Badge gradient uses 2 colours: #EF4444 and #DC2626, at an angle of 135°.
Paste background: linear-gradient(135deg, #EF4444, #DC2626); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
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.