Ruby to Piment Piquant Gradient
CSS
background: linear-gradient(90deg, #ca0147 0%, #cc2200 100%);
From Ruby (#CA0147) to Piment Piquant (#CC2200). 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 | |
|---|---|---|---|---|---|
| Ruby | #CA0147 | 202, 1, 71 | 339°, 99%, 40% | 0, 100, 65, 21 | |
| 25% (near Cherry) | #CB0935 | 203, 9, 53 | 346°, 92%, 42% | 0, 96, 74, 20 | |
| 50% (near Super Rose Red) | #CB1224 | 203, 18, 36 | 354°, 84%, 43% | 0, 91, 82, 20 | |
| 75% (near Cherry Crush) | #CC1A12 | 204, 26, 18 | 3°, 84%, 44% | 0, 87, 91, 20 | |
| Piment Piquant | #CC2200 | 204, 34, 0 | 10°, 100%, 40% | 0, 83, 100, 20 |
Halfway along, the gradient is #CB1224, closest to the named color Super Rose Red. 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.05:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #ca0147, #cc2200) - Diagonal:
linear-gradient(135deg, #ca0147, #cc2200) - Radial, from the center out:
radial-gradient(circle, #ca0147, #cc2200) - Tailwind CSS:
bg-gradient-to-r from-[#ca0147] to-[#cc2200]
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 Ruby to Piment Piquant gradient?
It starts at #CA0147 (Ruby) and ends at #CC2200 (Piment Piquant), with #CB1224 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #ca0147, #cc2200) runs from Piment Piquant on the left to Ruby on the right.