Ivory to Milk Foam Gradient
CSS
background: linear-gradient(90deg, #fffff0 0%, #f6ffe8 100%);
From Ivory (#FFFFF0) to Milk Foam (#F6FFE8). The two hues are 23° 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 | |
|---|---|---|---|---|---|
| Ivory | #FFFFF0 | 255, 255, 240 | 60°, 100%, 97% | 0, 0, 6, 0 | |
| 25% (near Ivory) | #FDFFEE | 253, 255, 238 | 67°, 100%, 97% | 1, 0, 7, 0 | |
| 50% (near Pearl Powder) | #FBFFEC | 251, 255, 236 | 73°, 100%, 96% | 2, 0, 7, 0 | |
| 75% (near Milk Foam) | #F8FFEA | 248, 255, 234 | 80°, 100%, 96% | 3, 0, 8, 0 | |
| Milk Foam | #F6FFE8 | 246, 255, 232 | 83°, 100%, 95% | 4, 0, 9, 0 |
Halfway along, the gradient is #FBFFEC, closest to the named color Pearl Powder. 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.02:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #fffff0, #f6ffe8) - Diagonal:
linear-gradient(135deg, #fffff0, #f6ffe8) - Radial, from the center out:
radial-gradient(circle, #fffff0, #f6ffe8) - Tailwind CSS:
bg-gradient-to-r from-[#fffff0] to-[#f6ffe8]
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 Ivory to Milk Foam gradient?
It starts at #FFFFF0 (Ivory) and ends at #F6FFE8 (Milk Foam), with #FBFFEC in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #fffff0, #f6ffe8) runs from Milk Foam on the left to Ivory on the right.