Huebook

Cornflower Blue to Medium Slate Blue Gradient

CSS

background: linear-gradient(90deg, #6495ed 0%, #7b68ee 100%);

From Cornflower Blue (#6495ED) to Medium Slate Blue (#7B68EE). The two hues are 30° apart on the color wheel, close enough that the blend stays clean without a muddy middle.

Colors along the gradient

NameHEXRGBHSLCMYKOKLCH
Cornflower Blue#6495ED100, 149, 237219°, 79%, 66%58, 37, 0, 767.5% 0.141 261
25% (near Cornflower Blue)#6A8AED106, 138, 237225°, 78%, 67%55, 42, 0, 765.5% 0.152 268
50% (near Pan Purple)#707FEE112, 127, 238233°, 79%, 69%53, 47, 0, 763.8% 0.165 275
75% (near Medium Slate Blue)#7573EE117, 115, 238241°, 78%, 69%51, 52, 0, 761.9% 0.180 280
Medium Slate Blue#7B68EE123, 104, 238249°, 80%, 67%48, 56, 0, 760.4% 0.194 285

Halfway along, the gradient is #707FEE, closest to the named color Pan Purple. 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.40: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.

Questions

What are the HEX codes of the Cornflower Blue to Medium Slate Blue gradient?

It starts at #6495ED (Cornflower Blue) and ends at #7B68EE (Medium Slate Blue), with #707FEE in the middle.

How do I reverse the gradient?

Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #6495ed, #7b68ee) runs from Medium Slate Blue on the left to Cornflower Blue on the right.