Huebook

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

NameHEXRGBHSLCMYKOKLCH
Alice Blue#F0F8FF240, 248, 255208°, 100%, 97%6, 3, 0, 097.5% 0.013 244
25% (near Alice Blue)#EEF4FE238, 244, 254217°, 89%, 96%6, 4, 0, 096.6% 0.015 261
50% (near Cotton Boll)#EBEFFD235, 239, 253227°, 82%, 96%7, 6, 0, 195.3% 0.019 273
75% (near Cotton Boll)#E9EBFB233, 235, 251233°, 69%, 95%7, 6, 0, 294.3% 0.022 280
Lavender (CSS)#E6E6FA230, 230, 250240°, 67%, 94%8, 8, 0, 293.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

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.