Description
Mediumpurple (read as "medium purple") has a hue of 260°, saturation 60% and lightness 65%, which places it in the purple 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 mediumpurple in CSS
.title { color: mediumpurple; }
.box { background: mediumpurple; border-color: #9370db; }
.soft { background: rgb(147 112 219 / 20%); } /* mediumpurple 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 |
|---|---|---|---|
| mediumslateblue | #7b68ee | 123, 104, 238 | 6.1 |
| mediumorchid | #ba55d3 | 186, 85, 211 | 10.1 |
| slateblue | #6a5acd | 106, 90, 205 | 10.4 |
| lightslategray | #778899 | 119, 136, 153 | 12 |
| slategray | #708090 | 112, 128, 144 | 12.3 |
| royalblue | #4169e1 | 65, 105, 225 | 14.4 |
| orchid | #da70d6 | 218, 112, 214 | 14.6 |
| darkorchid | #9932cc | 153, 50, 204 | 14.8 |
Δ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: 3.76:1; with black text: 5.58:1. Black body text on mediumpurple meets WCAG AA; white text does not.