CSS named color
Plum #DDA0DD
Plum (CSS keyword plum) has the hex code #DDA0DD and the RGB value rgb(221, 160, 221): a light, moderately saturated magenta.
Named after the fruit, but the CSS value (#dda0dd) is a light pinkish lilac, much paler than a ripe plum.
Color codes for Plum
| CSS keyword | plum |
|---|---|
| HEX | #DDA0DD |
| RGB | rgb(221, 160, 221) |
| HSL | hsl(300, 47%, 75%) |
| HWB | hwb(300 63% 13%) |
| OKLCH | oklch(78.3% 0.108 326.5) |
| CMYK (naive, no ICC profile) | cmyk(0%, 28%, 0%, 13%) |
| Decimal | 14,524,637 |
| Hue family | Purples and violets |
Contrast and accessibility
On plum, black text has a contrast ratio of 10.14:1 and passes AAA at any text size; white text reaches 2.06:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on plum | 10.14:1 | Pass | Pass | Pass | Pass | 63.6 |
| White text on plum | 2.06:1 | Fail | Fail | Fail | Fail | −44.9 |
| Plum text on white | 2.06:1 | Fail | Fail | Fail | Fail | 40.3 |
| Plum text on black | 10.14:1 | Pass | Pass | Pass | Pass | −62.0 |
Tints and shades
Each step mixes plum with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, plum, white 25%) in CSS.
Tints (mixed with white)
- 5%
#dfa5df - 15%
#e2aee2 - 25%
#e6b8e6 - 35%
#e9c1e9 - 45%
#eccbec - 55%
#f0d4f0 - 65%
#f3def3 - 75%
#f7e7f7 - 85%
#faf1fa - 95%
#fdfafd
Shades (mixed with black)
- 5%
#d298d2 - 15%
#bc88bc - 25%
#a678a6 - 35%
#906890 - 45%
#7a587a - 55%
#634863 - 65%
#4d384d - 75%
#372837 - 85%
#211821 - 95%
#0b080b
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, plum's complementary color is #8ACB8F (close to darkseagreen), its analogous colors are #BFAAF6 and #F09BBA, and its triadic partners are #D7B463 and #54CCDB. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #8acb8f |
| Analogous | −30°, +30° | #bfaaf6#f09bba |
| Triadic | +120°, +240° | #d7b463#54ccdb |
| Split-complementary | +150°, +210° | #b4c16f#61cfb6 |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
Plum sits on the boundary: its hue of 300° on the HSL wheel is a magenta, which reads warm next to blues and cool next to reds and oranges.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Nearest CSS named colors
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| pink-300 | #fda5d5 | 5.7 |
| purple-300 | #dab2ff | 6.0 |
| fuchsia-300 | #f4a8ff | 6.3 |
Code snippets
.element {
color: plum;
background-color: #dda0dd;
border-color: rgb(221 160 221);
outline-color: oklch(78.3% 0.108 326.5);
}<div class="bg-[#dda0dd] text-black">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-plum: #dda0dd;
}
/* then use bg-plum, text-plum, border-plum */import SwiftUI
extension Color {
static let plum = Color(red: 0.867, green: 0.627, blue: 0.867)
}import androidx.compose.ui.graphics.Color
val Plum = Color(0xFFDDA0DD)import 'package:flutter/material.dart';
const plum = Color(0xFFDDA0DD);<!-- res/values/colors.xml -->
<color name="plum">#DDA0DD</color>Frequently asked questions
- What is the hex code for plum?
- The hex code for plum is #DDA0DD. The same color is rgb(221, 160, 221), hsl(300, 47%, 75%) and oklch(78.3% 0.108 326.5), and in CSS you can also write the keyword plum directly.
- Is plum a warm or cool color?
- Plum sits on the boundary: its hue of 300° on the HSL wheel is a magenta, which reads warm next to blues and cool next to reds and oranges.
- What colors go with plum?
- Rotating the hue in OKLCH while keeping lightness and chroma, plum's complementary color is #8ACB8F (close to darkseagreen), its analogous colors are #BFAAF6 and #F09BBA, and its triadic partners are #D7B463 and #54CCDB. For text on top, black gives the higher contrast.
- Can you use white text on plum?
- White text on plum has a contrast ratio of 2.06:1, which fails AA even for large text under WCAG 2.2. Black text reaches 10.14:1 and passes both AA and AAA. In APCA terms that is Lc −44.9 for white and Lc 63.6 for black.
- What is the RGB value of plum?
- Plum is rgb(221, 160, 221): red 221, green 160 and blue 221 on the 0 to 255 scale, or 86.7%, 62.7% and 86.7%. As a decimal integer it is 14524637.
Last reviewed by Arielton Oberek.