Witch Hazel to Cucumber Milk Gradient
CSS
background: linear-gradient(90deg, #fbf073 0%, #c2f177 100%);
From Witch Hazel (#FBF073) to Cucumber Milk (#C2F177). 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 | |
|---|---|---|---|---|---|
| Witch Hazel | #FBF073 | 251, 240, 115 | 55°, 94%, 72% | 0, 4, 54, 2 | |
| 25% (near Illuminating) | #EDF074 | 237, 240, 116 | 61°, 81%, 70% | 1, 0, 52, 6 | |
| 50% (near Mindaro) | #DFF175 | 223, 241, 117 | 69°, 82%, 70% | 7, 0, 51, 5 | |
| 75% (near Venomous Sting) | #D0F176 | 208, 241, 118 | 76°, 81%, 70% | 14, 0, 51, 5 | |
| Cucumber Milk | #C2F177 | 194, 241, 119 | 83°, 81%, 71% | 20, 0, 51, 5 |
Halfway along, the gradient is #DFF175, closest to the named color Mindaro. 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.10:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #fbf073, #c2f177) - Diagonal:
linear-gradient(135deg, #fbf073, #c2f177) - Radial, from the center out:
radial-gradient(circle, #fbf073, #c2f177) - Tailwind CSS:
bg-gradient-to-r from-[#fbf073] to-[#c2f177]
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 Witch Hazel to Cucumber Milk gradient?
It starts at #FBF073 (Witch Hazel) and ends at #C2F177 (Cucumber Milk), with #DFF175 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #fbf073, #c2f177) runs from Cucumber Milk on the left to Witch Hazel on the right.