#FFFBEB
#FEF3C7
Warning State is a warm and pastel 2-colour linear gradient that runs from off-white (#FFFBEB) to pale yellow (#FEF3C7) at 180°. It suits hero sections and call-to-action buttons and soft backgrounds, cards and onboarding screens. Black text reads best on it, at a contrast ratio of 19.5:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(180deg, #FFFBEB, #FEF3C7);
bg-gradient-to-b from-[#FFFBEB] to-[#FEF3C7]
{
"warning-state": {
"value": "linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let warningStateGradient = LinearGradient(
colors: [
Color(red: 1, green: 0.984, blue: 0.922),
Color(red: 0.996, green: 0.953, blue: 0.78)
],
startPoint: UnitPoint(x: 0.5, y: 0),
endPoint: UnitPoint(x: 0.5, y: 1)
)
// Usage
Rectangle().fill(warningStateGradient)val warningStateColors = listOf(Color(0xFFFFFBEB), Color(0xFFFEF3C7))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = warningStateColors,
start = Offset(size.width * 0.5f, size.height * 0f),
end = Offset(size.width * 0.5f, size.height * 1f)
)
)
}<!-- res/drawable/warning-state_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#FFFBEB"
android:endColor="#FEF3C7"
android:type="linear" />
</shape>const warningStateGradient = LinearGradient(
begin: Alignment(0, -1),
end: Alignment(0, 1),
colors: [Color(0xFFFFFBEB), Color(0xFFFEF3C7)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: warningStateGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#FFFBEB', '#FEF3C7']}
start={{ x: 0.5, y: 0 }}
end={{ x: 0.5, 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="warning-state" x1="0.5" y1="0" x2="0.5" y2="1">
<stop offset="0%" stop-color="#FFFBEB" />
<stop offset="100%" stop-color="#FEF3C7" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#warning-state)" />
</svg>:root {
--warning-state-1: #FFFBEB;
--warning-state-2: #FEF3C7;
--warning-state-angle: 180deg;
--warning-state: linear-gradient(var(--warning-state-angle), var(--warning-state-1), var(--warning-state-2));
}
.hero {
background: var(--warning-state);
}$warning-state-1: #FFFBEB;
$warning-state-2: #FEF3C7;
$warning-state: linear-gradient(180deg, $warning-state-1, $warning-state-2);
@mixin warning-state-bg {
background: $warning-state-1;
background: $warning-state;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Off-white | #FFFBEB | rgb(255, 251, 235) | hsl(48, 100%, 96%) |
| 2 | Pale yellow | #FEF3C7 | rgb(254, 243, 199) | hsl(48, 96%, 89%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Warning State gradient uses 2 colours: #FFFBEB and #FEF3C7, at an angle of 180°.
Paste background: linear-gradient(180deg, #FFFBEB, #FEF3C7); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 19.5:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.