mediumslateblue (#7B68EE)

mediumslateblue is a CSS named color with the hex code #7B68EE, rgb(123, 104, 238). It is a light, saturated violet.

mediumslateblue#7B68EE
Keywordmediumslateblue
HEX#7b68ee
RGBrgb(123, 104, 238)
HSLhsl(249, 80%, 67%)

Full #7B68EE details: palettes, shades, color-blind view →

Description

Mediumslateblue (read as "medium slate blue") has a hue of 249°, saturation 80% and lightness 67%, which places it in the blue family. The "medium" prefix is part of the CSS name, but CSS names are not systematic: for example darkgray (#A9A9A9) is lighter than gray (#808080).

Using mediumslateblue in CSS

.title { color: mediumslateblue; }
.box   { background: mediumslateblue; border-color: #7b68ee; }
.soft  { background: rgb(123 104 238 / 20%); }   /* mediumslateblue at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
mediumpurple#9370db147, 112, 2196.1
slateblue#6a5acd106, 90, 2057.1
royalblue#4169e165, 105, 2259.5
slategray#708090112, 128, 14412.5
lightslategray#778899119, 136, 15312.8
blueviolet#8a2be2138, 43, 22613.7
mediumorchid#ba55d3186, 85, 21113.8
darkorchid#9932cc153, 50, 20414.5

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 4.15:1; with black text: 5.06:1. Black body text on mediumslateblue meets WCAG AA; white text does not.

Frequently asked questions

What is the hex code for mediumslateblue?
#7B68EE.
What colors are similar to mediumslateblue?
mediumpurple (#9370db), slateblue (#6a5acd), royalblue (#4169e1).