#C04000
#7B2A12
#3D1408
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 →
background: linear-gradient(160deg, #C04000, #7B2A12, #3D1408);
bg-[linear-gradient(160deg,#C04000,#7B2A12,#3D1408)]
{
"mahogany": {
"value": "linear-gradient(160deg, #C04000 0%, #7B2A12 50%, #3D1408 100%)",
"type": "color"
}
}
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)val mahoganyColors = listOf(Color(0xFFC04000), Color(0xFF7B2A12), Color(0xFF3D1408))
Modifier.drawBehind {
drawRect(
Brush.linearGradient(
colors = mahoganyColors,
start = Offset(size.width * 0.318f, size.height * 0f),
end = Offset(size.width * 0.682f, size.height * 1f)
)
)
}<!-- res/drawable/mahogany_gradient.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:startColor="#C04000"
android:centerColor="#7B2A12"
android:endColor="#3D1408"
android:type="linear" />
</shape>
<!-- Android only takes multiples of 45°: 160deg in CSS is 290°, rounded to 270°. -->const mahoganyGradient = LinearGradient(
begin: Alignment(-0.364, -1),
end: Alignment(0.364, 1),
colors: [Color(0xFFC04000), Color(0xFF7B2A12), Color(0xFF3D1408)],
);
// Usage
Container(decoration: const BoxDecoration(gradient: mahoganyGradient))import { LinearGradient } from 'expo-linear-gradient';
<LinearGradient
colors={['#C04000', '#7B2A12', '#3D1408']}
start={{ x: 0.318, y: 0 }}
end={{ x: 0.682, 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="mahogany" x1="0.318" y1="0" x2="0.682" y2="1">
<stop offset="0%" stop-color="#C04000" />
<stop offset="50%" stop-color="#7B2A12" />
<stop offset="100%" stop-color="#3D1408" />
</linearGradient>
</defs>
<rect width="100%" height="100%" fill="url(#mahogany)" />
</svg>:root {
--mahogany-1: #C04000;
--mahogany-2: #7B2A12;
--mahogany-3: #3D1408;
--mahogany-angle: 160deg;
--mahogany: linear-gradient(var(--mahogany-angle), var(--mahogany-1), var(--mahogany-2), var(--mahogany-3));
}
.hero {
background: var(--mahogany);
}$mahogany-1: #C04000;
$mahogany-2: #7B2A12;
$mahogany-3: #3D1408;
$mahogany: linear-gradient(160deg, $mahogany-1, $mahogany-2, $mahogany-3);
@mixin mahogany-bg {
background: $mahogany-1;
background: $mahogany;
}| Stop | Name | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Orange | #C04000 | rgb(192, 64, 0) | hsl(20, 100%, 38%) |
| 2 | Red | #7B2A12 | rgb(123, 42, 18) | hsl(14, 74%, 28%) |
| 3 | Deep red | #3D1408 | rgb(61, 20, 8) | hsl(14, 77%, 14%) |
Free PNG wallpapers and backgrounds, drawn in your browser at full resolution.
The Mahogany gradient uses 3 colours: #C04000, #7B2A12 and #3D1408, at an angle of 160°.
Paste background: linear-gradient(160deg, #C04000, #7B2A12, #3D1408); into any element’s styles. For Tailwind, use the class list in the Tailwind block above.
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.