Martian Colony to Xanthic Gradient
CSS
background: linear-gradient(90deg, #e5750f 0%, #f4e216 100%);
From Martian Colony (#E5750F) to Xanthic (#F4E216). The two hues are 27° 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 | |
|---|---|---|---|---|---|
| Martian Colony | #E5750F | 229, 117, 15 | 29°, 88%, 48% | 0, 49, 93, 10 | |
| 25% (near Elden Ring Orange) | #E99011 | 233, 144, 17 | 35°, 86%, 49% | 0, 38, 93, 9 | |
| 50% (near Groovy Giraffe) | #EDAC13 | 237, 172, 19 | 42°, 86%, 50% | 0, 27, 92, 7 | |
| 75% (near Egg Toast) | #F0C714 | 240, 199, 20 | 49°, 88%, 51% | 0, 17, 92, 6 | |
| Xanthic | #F4E216 | 244, 226, 22 | 55°, 91%, 52% | 0, 7, 91, 4 |
Halfway along, the gradient is #EDAC13, closest to the named color Groovy Giraffe. The stops are mixed in RGB, the way browsers draw a linear gradient by default.
Text on this gradient
Black text reads best on both ends, so one text color works across the whole gradient. The two end colors have a contrast ratio of 2.29:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #e5750f, #f4e216) - Diagonal:
linear-gradient(135deg, #e5750f, #f4e216) - Radial, from the center out:
radial-gradient(circle, #e5750f, #f4e216) - Tailwind CSS:
bg-gradient-to-r from-[#e5750f] to-[#f4e216]
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 Martian Colony to Xanthic gradient?
It starts at #E5750F (Martian Colony) and ends at #F4E216 (Xanthic), with #EDAC13 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #e5750f, #f4e216) runs from Xanthic on the left to Martian Colony on the right.