← All gradients
35%How it works
Phantom ↗

Phantom Gradient

#AB9FF2
#8E6FBD
Text readability
Brand CoolPastel Finance

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

CSS
background: linear-gradient(135deg, #AB9FF2, #8E6FBD);
Tailwind
bg-gradient-to-br from-[#AB9FF2] to-[#8E6FBD]
Figma token
{
    "phantom": {
        "value": "linear-gradient(135deg, #AB9FF2 0%, #8E6FBD 100%)",
        "type": "color"
    }
}

Phantom Gradient for SwiftUI, Flutter, Android and more

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)

Colours in the Phantom Gradient

StopNameHEXRGBHSL
1Pale blue#AB9FF2rgb(171, 159, 242)hsl(249, 76%, 79%)
2Purple#8E6FBDrgb(142, 111, 189)hsl(264, 37%, 59%)

Phantom Gradient in use

Build something beautifulA hero section on the Phantom GradientGet started
Button
Card accentAs a border or progress bar
Gradient text

Phantom Gradient variations

Reversed
Horizontal
Radial
Conic
Softer
Deeper
Smooth (OKLCH)
Hard stops

Download as an image

Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.

Frequently asked questions

What are the hex codes for the Phantom Gradient?

The Phantom Gradient uses 2 colours: #AB9FF2 and #8E6FBD, at an angle of 135°.

How do I use the Phantom Gradient in CSS?

Paste background: linear-gradient(135deg, #AB9FF2, #8E6FBD); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Phantom Gradient?

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.