Phantom Gradient is a cool and pastel 2-colour linear gradient that runs from pale blue (#AB9FF2) to purple (#8E6FBD) at 135°. It is inspired by Phantom’s brand colours, a reference point for finance interfaces. Black text reads best on it, at a contrast ratio of 6.9:1 against the gradient’s average colour (AA). Check every point, not just the average →
Unofficial reference: inspired by Phantom’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by Phantom. Phantom is a trademark of its owner. The CSS is free to use, but don’t use these colours to make your own product look like Phantom’s. Terms
background: linear-gradient(135deg, #AB9FF2, #8E6FBD);
bg-gradient-to-br from-[#AB9FF2] to-[#8E6FBD]
{
"phantom": {
"value": "linear-gradient(135deg, #AB9FF2 0%, #8E6FBD 100%)",
"type": "color"
}
}
The same gradient, same direction, ready for your app or design system.
let phantomGradient = LinearGradient(
colors: [
Color(red: 0.671, green: 0.624, blue: 0.949),
Color(red: 0.557, green: 0.435, blue: 0.741)
],
startPoint: UnitPoint(x: 0, y: 0),
endPoint: UnitPoint(x: 1, y: 1)
)
// Usage
Rectangle().fill(phantomGradient)val phantomColors = listOf(Color(0xFFAB9FF2), Color(0xFF8E6FBD))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = phantomColors,
start = Offset(size.width * 0f, size.height * 0f),
end = Offset(size.width * 1f, size.height * 1f)
)
)
}<!-- res/drawable/phantom_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="315"
android:startColor="#AB9FF2"
android:endColor="#8E6FBD"
android:type="linear" />
</shape>const phantomGradient = LinearGradient(
begin: Alignment(-1, -1),
end: Alignment(1, 1),
colors: [Color(0xFFAB9FF2), Color(0xFF8E6FBD)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: phantomGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#AB9FF2', '#8E6FBD']}
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="phantom" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#AB9FF2" />
<stop offset="100%" stop-color="#8E6FBD" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#phantom)" />
</svg>:root {
--phantom-1: #AB9FF2;
--phantom-2: #8E6FBD;
--phantom-angle: 135deg;
--phantom: linear-gradient(var(--phantom-angle), var(--phantom-1), var(--phantom-2));
}
.hero {
background: var(--phantom);
}$phantom-1: #AB9FF2;
$phantom-2: #8E6FBD;
$phantom: linear-gradient(135deg, $phantom-1, $phantom-2);
@mixin phantom-bg {
background: $phantom-1;
background: $phantom;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Pale blue | #AB9FF2 | rgb(171, 159, 242) | hsl(249, 76%, 79%) |
| 2 | Purple | #8E6FBD | rgb(142, 111, 189) | hsl(264, 37%, 59%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Phantom Gradient uses 2 colours: #AB9FF2 and #8E6FBD, at an angle of 135°.
Paste background: linear-gradient(135deg, #AB9FF2, #8E6FBD); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
Black text has the best contrast, at 6.9:1 against the gradient’s average colour, which is AA. Check the lightest and darkest ends too if text spans the whole gradient.