Huebook

Cotton Boll to Lavender (CSS) Gradient

CSS

background: linear-gradient(90deg, #e7effb 0%, #e6e6fa 100%);

From Cotton Boll (#E7EFFB) to Lavender (CSS) (#E6E6FA). The two hues are 24° apart on the color wheel, close enough that the blend stays clean without a muddy middle.

Colors along the gradient

NameHEXRGBHSLCMYKOKLCH
Cotton Boll#E7EFFB231, 239, 251216°, 71%, 95%8, 5, 0, 295.0% 0.018 258
25% (near Cotton Boll)#E7EDFB231, 237, 251222°, 71%, 95%8, 6, 0, 294.6% 0.020 267
50% (near Cotton Boll)#E7EBFB231, 235, 251228°, 71%, 95%8, 6, 0, 294.2% 0.022 275
75% (near Lavender (CSS))#E6E8FA230, 232, 250234°, 67%, 94%8, 7, 0, 293.5% 0.024 281
Lavender (CSS)#E6E6FA230, 230, 250240°, 67%, 94%8, 8, 0, 293.1% 0.027 286

Halfway along, the gradient is #E7EBFB, 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.06: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 Cotton Boll to Lavender (CSS) gradient?

It starts at #E7EFFB (Cotton Boll) and ends at #E6E6FA (Lavender (CSS)), with #E7EBFB in the middle.

How do I reverse the gradient?

Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #e7effb, #e6e6fa) runs from Lavender (CSS) on the left to Cotton Boll on the right.