Ruby Fire to Sweet Chilli Gradient
CSS
background: linear-gradient(90deg, #f20769 0%, #f5160b 100%);
From Ruby Fire (#F20769) to Sweet Chilli (#F5160B). The two hues are 28° 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 Fire | #F20769 | 242, 7, 105 | 335°, 94%, 49% | 0, 97, 57, 5 | |
| 25% (near Rock Lobster) | #F30B52 | 243, 11, 82 | 342°, 91%, 50% | 0, 95, 66, 5 | |
| 50% (near Barberry) | #F40F3A | 244, 15, 58 | 349°, 91%, 51% | 0, 94, 76, 4 | |
| 75% (near Blood Donor) | #F41223 | 244, 18, 35 | 355°, 91%, 51% | 0, 93, 86, 4 | |
| Sweet Chilli | #F5160B | 245, 22, 11 | 3°, 92%, 50% | 0, 91, 96, 4 |
Halfway along, the gradient is #F40F3A, closest to the named color Barberry. 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 1.00:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #f20769, #f5160b) - Diagonal:
linear-gradient(135deg, #f20769, #f5160b) - Radial, from the center out:
radial-gradient(circle, #f20769, #f5160b) - Tailwind CSS:
bg-gradient-to-r from-[#f20769] to-[#f5160b]
Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.
Related gradients
Questions
What are the HEX codes of the Ruby Fire to Sweet Chilli gradient?
It starts at #F20769 (Ruby Fire) and ends at #F5160B (Sweet Chilli), with #F40F3A in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #f20769, #f5160b) runs from Sweet Chilli on the left to Ruby Fire on the right.