#7C3AED
#A855F7
#EC4899
Achievement Unlock is a bold and cool 3-colour linear gradient that runs from purple (#7C3AED) through light purple (#A855F7) to pink (#EC4899) at 45°. It suits banners and attention-grabbing headers and dashboards and SaaS landing pages. 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(45deg, #7C3AED, #A855F7, #EC4899);
bg-gradient-to-tr from-[#7C3AED] via-[#A855F7] to-[#EC4899]
{
"achievement-unlock": {
"value": "linear-gradient(45deg, #7C3AED 0%, #A855F7 50%, #EC4899 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let achievementUnlockGradient = LinearGradient(
colors: [
Color(red: 0.486, green: 0.227, blue: 0.929),
Color(red: 0.659, green: 0.333, blue: 0.969),
Color(red: 0.925, green: 0.282, blue: 0.6)
],
startPoint: UnitPoint(x: 0, y: 1),
endPoint: UnitPoint(x: 1, y: 0)
)
// Usage
Rectangle().fill(achievementUnlockGradient)val achievementUnlockColors = listOf(Color(0xFF7C3AED), Color(0xFFA855F7), Color(0xFFEC4899))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = achievementUnlockColors,
start = Offset(size.width * 0f, size.height * 1f),
end = Offset(size.width * 1f, size.height * 0f)
)
)
}<!-- res/drawable/achievement-unlock_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="45"
android:startColor="#7C3AED"
android:centerColor="#A855F7"
android:endColor="#EC4899"
android:type="linear" />
</shape>const achievementUnlockGradient = LinearGradient(
begin: Alignment(-1, 1),
end: Alignment(1, -1),
colors: [Color(0xFF7C3AED), Color(0xFFA855F7), Color(0xFFEC4899)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: achievementUnlockGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#7C3AED', '#A855F7', '#EC4899']}
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="achievement-unlock" x1="0" y1="1" x2="1" y2="0">
<stop offset="0%" stop-color="#7C3AED" />
<stop offset="50%" stop-color="#A855F7" />
<stop offset="100%" stop-color="#EC4899" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#achievement-unlock)" />
</svg>:root {
--achievement-unlock-1: #7C3AED;
--achievement-unlock-2: #A855F7;
--achievement-unlock-3: #EC4899;
--achievement-unlock-angle: 45deg;
--achievement-unlock: linear-gradient(var(--achievement-unlock-angle), var(--achievement-unlock-1), var(--achievement-unlock-2), var(--achievement-unlock-3));
}
.hero {
background: var(--achievement-unlock);
}$achievement-unlock-1: #7C3AED;
$achievement-unlock-2: #A855F7;
$achievement-unlock-3: #EC4899;
$achievement-unlock: linear-gradient(45deg, $achievement-unlock-1, $achievement-unlock-2, $achievement-unlock-3);
@mixin achievement-unlock-bg {
background: $achievement-unlock-1;
background: $achievement-unlock;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Purple | #7C3AED | rgb(124, 58, 237) | hsl(262, 83%, 58%) |
| 2 | Light purple | #A855F7 | rgb(168, 85, 247) | hsl(271, 91%, 65%) |
| 3 | Pink | #EC4899 | rgb(236, 72, 153) | hsl(330, 81%, 60%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Achievement Unlock gradient uses 3 colours: #7C3AED, #A855F7 and #EC4899, at an angle of 45°.
Paste background: linear-gradient(45deg, #7C3AED, #A855F7, #EC4899); 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.