Alice Blue to Lavender (CSS) Gradient
CSS
background: linear-gradient(90deg, #f0f8ff 0%, #e6e6fa 100%);
From Alice Blue (#F0F8FF) to Lavender (CSS) (#E6E6FA). The two hues are 32° 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 | OKLCH | |
|---|---|---|---|---|---|---|
| Alice Blue | #F0F8FF | 240, 248, 255 | 208°, 100%, 97% | 6, 3, 0, 0 | 97.5% 0.013 244 | |
| 25% (near Alice Blue) | #EEF4FE | 238, 244, 254 | 217°, 89%, 96% | 6, 4, 0, 0 | 96.6% 0.015 261 | |
| 50% (near Cotton Boll) | #EBEFFD | 235, 239, 253 | 227°, 82%, 96% | 7, 6, 0, 1 | 95.3% 0.019 273 | |
| 75% (near Cotton Boll) | #E9EBFB | 233, 235, 251 | 233°, 69%, 95% | 7, 6, 0, 2 | 94.3% 0.022 280 | |
| Lavender (CSS) | #E6E6FA | 230, 230, 250 | 240°, 67%, 94% | 8, 8, 0, 2 | 93.1% 0.027 286 |
Halfway along, the gradient is #EBEFFD, closest to the named color Cotton Boll. 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.15:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #f0f8ff, #e6e6fa) - Diagonal:
linear-gradient(135deg, #f0f8ff, #e6e6fa) - Radial, from the center out:
radial-gradient(circle, #f0f8ff, #e6e6fa) - Tailwind CSS:
bg-gradient-to-r from-[#f0f8ff] to-[#e6e6fa]
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 Alice Blue to Lavender (CSS) gradient?
It starts at #F0F8FF (Alice Blue) and ends at #E6E6FA (Lavender (CSS)), with #EBEFFD in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #f0f8ff, #e6e6fa) runs from Lavender (CSS) on the left to Alice Blue on the right.