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
| Color | HEX | RGB | ΔE 2000 |
|---|---|---|---|
| mediumpurple | #9370db | 147, 112, 219 | 6.1 |
| slateblue | #6a5acd | 106, 90, 205 | 7.1 |
| royalblue | #4169e1 | 65, 105, 225 | 9.5 |
| slategray | #708090 | 112, 128, 144 | 12.5 |
| lightslategray | #778899 | 119, 136, 153 | 12.8 |
| blueviolet | #8a2be2 | 138, 43, 226 | 13.7 |
| mediumorchid | #ba55d3 | 186, 85, 211 | 13.8 |
| darkorchid | #9932cc | 153, 50, 204 | 14.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.