← All gradients
35%How it works
Curated

Mahogany

#C04000
#7B2A12
#3D1408
Text readability
Curated WarmDark

Mahogany is a warm and dark 3-colour linear gradient that runs from orange (#C04000) through red (#7B2A12) to deep red (#3D1408) at 160°. It suits hero sections and call-to-action buttons and dark-mode interfaces and footers. White text reads best on it, at a contrast ratio of 9.5:1 against the gradient’s average colour (AAA). Check every point, not just the average →

CSS
background: linear-gradient(160deg, #C04000, #7B2A12, #3D1408);
Tailwind
bg-[linear-gradient(160deg,#C04000,#7B2A12,#3D1408)]
Figma token
{
    "mahogany": {
        "value": "linear-gradient(160deg, #C04000 0%, #7B2A12 50%, #3D1408 100%)",
        "type": "color"
    }
}

Mahogany gradient for SwiftUI, Flutter, Android and more

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

let mahoganyGradient = LinearGradient(
    colors: [
        Color(red: 0.753, green: 0.251, blue: 0),
        Color(red: 0.482, green: 0.165, blue: 0.071),
        Color(red: 0.239, green: 0.078, blue: 0.031)
    ],
    startPoint: UnitPoint(x: 0.318, y: 0),
    endPoint: UnitPoint(x: 0.682, y: 1)
)

// Usage
Rectangle().fill(mahoganyGradient)

Colours in the Mahogany gradient

StopNameHEXRGBHSL
1Orange#C04000rgb(192, 64, 0)hsl(20, 100%, 38%)
2Red#7B2A12rgb(123, 42, 18)hsl(14, 74%, 28%)
3Deep red#3D1408rgb(61, 20, 8)hsl(14, 77%, 14%)

Mahogany gradient in use

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

Mahogany 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 Mahogany gradient?

The Mahogany gradient uses 3 colours: #C04000, #7B2A12 and #3D1408, at an angle of 160°.

How do I use the Mahogany gradient in CSS?

Paste background: linear-gradient(160deg, #C04000, #7B2A12, #3D1408); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.

What text colour works on the Mahogany gradient?

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