Description
Mediumvioletred (read as "medium violet red") has a hue of 322°, saturation 81% and lightness 43%, which places it in the pink & magenta 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 mediumvioletred in CSS
.title { color: mediumvioletred; }
.box { background: mediumvioletred; border-color: #c71585; }
.soft { background: rgb(199 21 133 / 20%); } /* mediumvioletred 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 |
|---|---|---|---|
| deeppink | #ff1493 | 255, 20, 147 | 12.2 |
| darkmagenta | #8b008b | 139, 0, 139 | 14.4 |
| purple | #800080 | 128, 0, 128 | 16 |
| mediumorchid | #ba55d3 | 186, 85, 211 | 16.3 |
| darkorchid | #9932cc | 153, 50, 204 | 16.7 |
| palevioletred | #db7093 | 219, 112, 147 | 18.1 |
| darkviolet | #9400d3 | 148, 0, 211 | 18.5 |
| hotpink | #ff69b4 | 255, 105, 180 | 19.7 |
Δ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: 5.42:1; with black text: 3.87:1. White body text on mediumvioletred meets WCAG AA.