Melanzane to Aubergine Gradient
CSS
background: linear-gradient(90deg, #342931 0%, #372528 100%);
From Melanzane (#342931) to Aubergine (#372528). The two hues are 34° apart on the color wheel, close enough that the blend stays clean without a muddy middle.
Colors along the gradient
| Name | HEX | RGB | HSL | CMYK | |
|---|---|---|---|---|---|
| Melanzane | #342931 | 52, 41, 49 | 316°, 12%, 18% | 0, 21, 6, 80 | |
| 25% (near Melanzane) | #35282F | 53, 40, 47 | 328°, 14%, 18% | 0, 25, 11, 79 | |
| 50% (near Smoky Charcoal) | #36272D | 54, 39, 45 | 336°, 16%, 18% | 0, 28, 17, 79 | |
| 75% (near Aubergine) | #36262A | 54, 38, 42 | 345°, 17%, 18% | 0, 30, 22, 79 | |
| Aubergine | #372528 | 55, 37, 40 | 350°, 20%, 18% | 0, 33, 27, 78 |
Halfway along, the gradient is #36272D, closest to the named color Smoky Charcoal. The stops are mixed in RGB, the way browsers draw a linear gradient by default.
Text on this gradient
White text reads best on both ends, so one text color works across the whole gradient. The two end colors have a contrast ratio of 1.03:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #342931, #372528) - Diagonal:
linear-gradient(135deg, #342931, #372528) - Radial, from the center out:
radial-gradient(circle, #342931, #372528) - Tailwind CSS:
bg-gradient-to-r from-[#342931] to-[#372528]
Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.
Questions
What are the HEX codes of the Melanzane to Aubergine gradient?
It starts at #342931 (Melanzane) and ends at #372528 (Aubergine), with #36272D in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #342931, #372528) runs from Aubergine on the left to Melanzane on the right.