#F5F3FF
#EDE9FE
Soft Purple UI is a cool and pastel 2-colour linear gradient that runs from off-white (#F5F3FF) to off-white (#EDE9FE) at 135°. It suits dashboards and SaaS landing pages and soft backgrounds, cards and onboarding screens. Black text reads best on it, at a contrast ratio of 18.4:1 against the gradient’s average colour (AAA). Check every point, not just the average →
background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
bg-gradient-to-br from-[#F5F3FF] to-[#EDE9FE]
{
"soft-purple-ui": {
"value": "linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let softPurpleUiGradient = LinearGradient(
colors: [
Color(red: 0.961, green: 0.953, blue: 1),
Color(red: 0.929, green: 0.914, blue: 0.996)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(softPurpleUiGradient)val softPurpleUiColors = listOf(Color(0xFFF5F3FF), Color(0xFFEDE9FE))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = softPurpleUiColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/soft-purple-ui_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#F5F3FF"
android:endColor="#EDE9FE"
android:type="linear" />
</shape>const softPurpleUiGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFFF5F3FF), Color(0xFFEDE9FE)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: softPurpleUiGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#F5F3FF', '#EDE9FE']}
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="soft-purple-ui" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#F5F3FF" />
<stop offset="100%" stop-color="#EDE9FE" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#soft-purple-ui)" />
</svg>:root {
--soft-purple-ui-1: #F5F3FF;
--soft-purple-ui-2: #EDE9FE;
--soft-purple-ui-angle: 135deg;
--soft-purple-ui: linear-gradient(var(--soft-purple-ui-angle), var(--soft-purple-ui-1), var(--soft-purple-ui-2));
}
.hero {
background: var(--soft-purple-ui);
}$soft-purple-ui-1: #F5F3FF;
$soft-purple-ui-2: #EDE9FE;
$soft-purple-ui: linear-gradient(135deg, $soft-purple-ui-1, $soft-purple-ui-2);
@mixin soft-purple-ui-bg {
background: $soft-purple-ui-1;
background: $soft-purple-ui;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Off-white | #F5F3FF | rgb(245, 243, 255) | hsl(250, 100%, 98%) |
| 2 | Off-white | #EDE9FE | rgb(237, 233, 254) | hsl(251, 91%, 95%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Soft Purple UI gradient uses 2 colours: #F5F3FF and #EDE9FE, at an angle of 135°.
Paste background: linear-gradient(135deg, #F5F3FF, #EDE9FE); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 18.4:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.