#7C3AED
#EC4899
#F59E0B
Mesh Purple is a warm and bold 3-colour linear gradient that runs from purple (#7C3AED) through pink (#EC4899) to orange (#F59E0B) at 45°. 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 5.5:1 against the gradient’s average colour (AA). Check every point, not just the average →
background: linear-gradient(45deg, #7C3AED, #EC4899, #F59E0B);
bg-gradient-to-tr from-[#7C3AED] via-[#EC4899] to-[#F59E0B]
{
"mesh-purple": {
"value": "linear-gradient(45deg, #7C3AED 0%, #EC4899 50%, #F59E0B 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let meshPurpleGradient = LinearGradient(
colors: [
Color(red: 0.486, green: 0.227, blue: 0.929),
Color(red: 0.925, green: 0.282, blue: 0.6),
Color(red: 0.961, green: 0.62, blue: 0.043)
],
startPoint: UnitPoint(x: 0, y: 1),
endPoint: UnitPoint(x: 1, y: 0)
)
// Usage
Rectangle().fill(meshPurpleGradient)val meshPurpleColors = listOf(Color(0xFF7C3AED), Color(0xFFEC4899), Color(0xFFF59E0B))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = meshPurpleColors,
start = Offset(size.width * 0f, size.height * 1f),
end = Offset(size.width * 1f, size.height * 0f)
)
)
}<!-- res/drawable/mesh-purple_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="45"
android:startColor="#7C3AED"
android:centerColor="#EC4899"
android:endColor="#F59E0B"
android:type="linear" />
</shape>const meshPurpleGradient = LinearGradient(
begin: Alignment(-1, 1),
end: Alignment(1, -1),
colors: [Color(0xFF7C3AED), Color(0xFFEC4899), Color(0xFFF59E0B)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: meshPurpleGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#7C3AED', '#EC4899', '#F59E0B']}
start={{ x: 0, y: 1 }}
end={{ x: 1, y: 0 }}
style={{ flex: 1 }}
/><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<defs>
<linearGradient id="mesh-purple" x1="0" y1="1" x2="1" y2="0">
<stop offset="0%" stop-color="#7C3AED" />
<stop offset="50%" stop-color="#EC4899" />
<stop offset="100%" stop-color="#F59E0B" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#mesh-purple)" />
</svg>:root {
--mesh-purple-1: #7C3AED;
--mesh-purple-2: #EC4899;
--mesh-purple-3: #F59E0B;
--mesh-purple-angle: 45deg;
--mesh-purple: linear-gradient(var(--mesh-purple-angle), var(--mesh-purple-1), var(--mesh-purple-2), var(--mesh-purple-3));
}
.hero {
background: var(--mesh-purple);
}$mesh-purple-1: #7C3AED;
$mesh-purple-2: #EC4899;
$mesh-purple-3: #F59E0B;
$mesh-purple: linear-gradient(45deg, $mesh-purple-1, $mesh-purple-2, $mesh-purple-3);
@mixin mesh-purple-bg {
background: $mesh-purple-1;
background: $mesh-purple;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Purple | #7C3AED | rgb(124, 58, 237) | hsl(262, 83%, 58%) |
| 2 | Pink | #EC4899 | rgb(236, 72, 153) | hsl(330, 81%, 60%) |
| 3 | Orange | #F59E0B | rgb(245, 158, 11) | hsl(38, 92%, 50%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Mesh Purple gradient uses 3 colours: #7C3AED, #EC4899 and #F59E0B, at an angle of 45°.
Paste background: linear-gradient(45deg, #7C3AED, #EC4899, #F59E0B); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 5.5:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.