← All gradients
35%How it works
Seasonal

Halloween Haunted Violet

#240046
#5A189A
#C77DFF
Text readability
Seasonal CoolDark

Halloween Haunted Violet is a cool and dark 3-colour linear gradient that runs from deep purple (#240046) through purple (#5A189A) to light purple (#C77DFF) at 160°. It suits dashboards and SaaS landing pages and dark-mode interfaces and footers. White text reads best on it, at a contrast ratio of 8.1:1 against the gradient’s average colour (AAA). Check every point, not just the average →

CSS
background: linear-gradient(160deg, #240046, #5A189A, #C77DFF);
Tailwind
bg-[linear-gradient(160deg,#240046,#5A189A,#C77DFF)]
Figma token
{
    "halloween-haunted-violet": {
        "value": "linear-gradient(160deg, #240046 0%, #5A189A 50%, #C77DFF 100%)",
        "type": "color"
    }
}

Halloween Haunted Violet gradient for SwiftUI, Flutter, Android and more

The same gradient, same direction, ready for your app or design system.

let halloweenHauntedVioletGradient = LinearGradient(
    colors: [
        Color(red: 0.141, green: 0, blue: 0.275),
        Color(red: 0.353, green: 0.094, blue: 0.604),
        Color(red: 0.78, green: 0.49, blue: 1)
    ],
    startPoint: UnitPoint(x: 0.318, y: 0),
    endPoint: UnitPoint(x: 0.682, y: 1)
)

// Usage
Rectangle().fill(halloweenHauntedVioletGradient)

Colours in the Halloween Haunted Violet gradient

StopNameHEXRGBHSL
1Deep purple#240046rgb(36, 0, 70)hsl(271, 100%, 14%)
2Purple#5A189Argb(90, 24, 154)hsl(270, 73%, 35%)
3Light purple#C77DFFrgb(199, 125, 255)hsl(274, 100%, 75%)

Halloween Haunted Violet gradient in use

Build something beautifulA hero section on the Halloween Haunted Violet gradientGet started
Button
Card accentAs a border or progress bar
Gradient text

Halloween Haunted Violet 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 Halloween Haunted Violet gradient?

The Halloween Haunted Violet gradient uses 3 colours: #240046, #5A189A and #C77DFF, at an angle of 160°.

How do I use the Halloween Haunted Violet gradient in CSS?

Paste background: linear-gradient(160deg, #240046, #5A189A, #C77DFF); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Halloween Haunted Violet gradient?

White text has the best contrast, at 8.1:1 against the gradient’s average colour, which is AAA. Check the lightest and darkest ends too if text spans the whole gradient.