← All gradients
35%How it works
Obsidian ↗

Obsidian Gradient

#7C3AED
#4C1D95
Text readability
Brand CoolDark Tech

Obsidian Gradient is a cool and dark 2-colour linear gradient that runs from purple (#7C3AED) to purple (#4C1D95) at 135°. It is inspired by Obsidian’s brand colours, a reference point for tech interfaces. White text reads best on it, at a contrast ratio of 7.9:1 against the gradient’s average colour (AAA). Check every point, not just the average →

Unofficial reference: inspired by Obsidian’s brand colours, which may differ from its official guidelines. The Gradients is not affiliated with or endorsed by Obsidian. Obsidian 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 Obsidian’s. Terms

CSS
background: linear-gradient(135deg, #7C3AED, #4C1D95);
Tailwind
bg-gradient-to-br from-[#7C3AED] to-[#4C1D95]
Figma token
{
    "obsidian": {
        "value": "linear-gradient(135deg, #7C3AED 0%, #4C1D95 100%)",
        "type": "color"
    }
}

Obsidian Gradient for SwiftUI, Flutter, Android and more

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

let obsidianGradient = LinearGradient(
    colors: [
        Color(red: 0.486, green: 0.227, blue: 0.929),
        Color(red: 0.298, green: 0.114, blue: 0.584)
    ],
    startPoint: UnitPoint(x: 0, y: 0),
    endPoint: UnitPoint(x: 1, y: 1)
)

// Usage
Rectangle().fill(obsidianGradient)

Colours in the Obsidian Gradient

StopNameHEXRGBHSL
1Purple#7C3AEDrgb(124, 58, 237)hsl(262, 83%, 58%)
2Purple#4C1D95rgb(76, 29, 149)hsl(264, 67%, 35%)

Obsidian Gradient in use

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

Obsidian 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 Obsidian Gradient?

The Obsidian Gradient uses 2 colours: #7C3AED and #4C1D95, at an angle of 135°.

How do I use the Obsidian Gradient in CSS?

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

What text colour works on the Obsidian Gradient?

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