Watermelon Milk to Cocoon Gradient
CSS
background: linear-gradient(90deg, #dfcfca 0%, #dedbcc 100%);
From Watermelon Milk (#DFCFCA) to Cocoon (#DEDBCC). The two hues are 36° 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 | |
|---|---|---|---|---|---|
| Watermelon Milk | #DFCFCA | 223, 207, 202 | 14°, 25%, 83% | 0, 7, 9, 13 | |
| 25% (near Mocha Ice) | #DFD2CB | 223, 210, 203 | 21°, 24%, 84% | 0, 6, 9, 13 | |
| 50% (near Mocha Ice) | #DFD5CB | 223, 213, 203 | 30°, 24%, 84% | 0, 4, 9, 13 | |
| 75% (near Athena) | #DED8CC | 222, 216, 204 | 40°, 21%, 84% | 0, 3, 8, 13 | |
| Cocoon | #DEDBCC | 222, 219, 204 | 50°, 21%, 84% | 0, 1, 8, 13 |
Halfway along, the gradient is #DFD5CB, closest to the named color Mocha Ice. 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.09:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #dfcfca, #dedbcc) - Diagonal:
linear-gradient(135deg, #dfcfca, #dedbcc) - Radial, from the center out:
radial-gradient(circle, #dfcfca, #dedbcc) - Tailwind CSS:
bg-gradient-to-r from-[#dfcfca] to-[#dedbcc]
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 Watermelon Milk to Cocoon gradient?
It starts at #DFCFCA (Watermelon Milk) and ends at #DEDBCC (Cocoon), with #DFD5CB in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #dfcfca, #dedbcc) runs from Cocoon on the left to Watermelon Milk on the right.