#DA22FF
#9733EE
Purple Haze is a cool and bold 2-colour linear gradient that runs from purple (#DA22FF) to purple (#9733EE) at 135°. It suits dashboards and SaaS landing pages and banners and attention-grabbing headers. Black text reads best on it, at a contrast ratio of 4.7:1 against the gradient’s average colour (AA). Check every point, not just the average →
background: linear-gradient(135deg, #DA22FF, #9733EE);
bg-gradient-to-br from-[#DA22FF] to-[#9733EE]
{
"purple-haze": {
"value": "linear-gradient(135deg, #DA22FF 0%, #9733EE 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let purpleHazeGradient = LinearGradient(
colors: [
Color(red: 0.855, green: 0.133, blue: 1),
Color(red: 0.592, green: 0.2, blue: 0.933)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(purpleHazeGradient)val purpleHazeColors = listOf(Color(0xFFDA22FF), Color(0xFF9733EE))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = purpleHazeColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/purple-haze_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#DA22FF"
android:endColor="#9733EE"
android:type="linear" />
</shape>const purpleHazeGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFFDA22FF), Color(0xFF9733EE)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: purpleHazeGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#DA22FF', '#9733EE']}
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="purple-haze" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#DA22FF" />
<stop offset="100%" stop-color="#9733EE" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#purple-haze)" />
</svg>:root {
--purple-haze-1: #DA22FF;
--purple-haze-2: #9733EE;
--purple-haze-angle: 135deg;
--purple-haze: linear-gradient(var(--purple-haze-angle), var(--purple-haze-1), var(--purple-haze-2));
}
.hero {
background: var(--purple-haze);
}$purple-haze-1: #DA22FF;
$purple-haze-2: #9733EE;
$purple-haze: linear-gradient(135deg, $purple-haze-1, $purple-haze-2);
@mixin purple-haze-bg {
background: $purple-haze-1;
background: $purple-haze;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Purple | #DA22FF | rgb(218, 34, 255) | hsl(290, 100%, 57%) |
| 2 | Purple | #9733EE | rgb(151, 51, 238) | hsl(272, 85%, 57%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Purple Haze gradient uses 2 colours: #DA22FF and #9733EE, at an angle of 135°.
Paste background: linear-gradient(135deg, #DA22FF, #9733EE); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 4.7:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.