Melodramatic Magenta to Cosmic Red Gradient
CSS
background: linear-gradient(90deg, #dd22aa 0%, #da244b 100%);
From Melodramatic Magenta (#DD22AA) to Cosmic Red (#DA244B). The two hues are 31° 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 | |
|---|---|---|---|---|---|
| Melodramatic Magenta | #DD22AA | 221, 34, 170 | 316°, 73%, 50% | 0, 85, 23, 13 | |
| 25% (near Mystic Magenta) | #DC2392 | 220, 35, 146 | 324°, 73%, 50% | 0, 84, 34, 14 | |
| 50% (near Mystic Magenta) | #DC237B | 220, 35, 123 | 331°, 73%, 50% | 0, 84, 44, 14 | |
| 75% (near Beet Wave) | #DB2463 | 219, 36, 99 | 339°, 72%, 50% | 0, 84, 55, 14 | |
| Cosmic Red | #DA244B | 218, 36, 75 | 347°, 72%, 50% | 0, 83, 66, 15 |
Halfway along, the gradient is #DC237B, closest to the named color Mystic Magenta. The stops are mixed in RGB, the way browsers draw a linear gradient by default.
Text on this gradient
Black text reads best on the Melodramatic Magenta end and white text on the Cosmic Red end. For a single line of text across the whole width, put it on a solid panel or pick the side it sits on. The two end colors have a contrast ratio of 1.13:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #dd22aa, #da244b) - Diagonal:
linear-gradient(135deg, #dd22aa, #da244b) - Radial, from the center out:
radial-gradient(circle, #dd22aa, #da244b) - Tailwind CSS:
bg-gradient-to-r from-[#dd22aa] to-[#da244b]
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 Melodramatic Magenta to Cosmic Red gradient?
It starts at #DD22AA (Melodramatic Magenta) and ends at #DA244B (Cosmic Red), with #DC237B in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #dd22aa, #da244b) runs from Cosmic Red on the left to Melodramatic Magenta on the right.