About Plum
Plum (plum) is a light, moderately saturated magenta with the hex code #dda0dd, or rgb(221, 160, 221). In HSL it sits at a hue of 300°, 47% saturation and 75% lightness. It is one of the 148 named colors every browser understands, so you can write color: plum; instead of the hex value.
Using Plum for text and backgrounds
| Pairing | Contrast ratio | WCAG |
|---|---|---|
| Plum text on white | 2.07 : 1 | fails |
| Plum text on black | 10.15 : 1 | AAA |
On a plum background, use black text (10.15 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.
CSS
.element {
color: plum; /* or #dda0dd */
background-color: #dda0dd;
border: 1px solid rgb(221 160 221 / 50%);
}
Similar named colors
Thistle (#d8bfd8), Violet (#ee82ee), Orchid (#da70d6), Light Pink (#ffb6c1), Pink (#ffc0cb), Silver (#c0c0c0).