Skip to content

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.

Plum#DDA0DD

Named after the fruit, but the CSS value (#dda0dd) is a light pinkish lilac, much paler than a ripe plum.

Color codes for Plum

Color codes for Plum
CSS keywordplum
HEX#DDA0DD
RGBrgb(221, 160, 221)
HSLhsl(300, 47%, 75%)
HWBhwb(300 63% 13%)
OKLCHoklch(78.3% 0.108 326.5)
CMYK (naive, no ICC profile)cmyk(0%, 28%, 0%, 13%)
Decimal14,524,637
Hue familyPurples 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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on plum10.14:1PassPassPassPass63.6
White text on plum2.06:1FailFailFailFail−44.9
Plum text on white2.06:1FailFailFailFail40.3
Plum text on black10.14:1PassPassPassPass−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)

  1. 5%
    #dfa5df
  2. 15%
    #e2aee2
  3. 25%
    #e6b8e6
  4. 35%
    #e9c1e9
  5. 45%
    #eccbec
  6. 55%
    #f0d4f0
  7. 65%
    #f3def3
  8. 75%
    #f7e7f7
  9. 85%
    #faf1fa
  10. 95%
    #fdfafd

Shades (mixed with black)

  1. 5%
    #d298d2
  2. 15%
    #bc88bc
  3. 25%
    #a678a6
  4. 35%
    #906890
  5. 45%
    #7a587a
  6. 55%
    #634863
  7. 65%
    #4d384d
  8. 75%
    #372837
  9. 85%
    #211821
  10. 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.

Color harmonies
HarmonyRotationColor
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 CSS named colors
ColorHEXΔE OK
thistle#d8bfd88.1
violet#ee82ee8.1
lightpink#ffb6c19.7

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
pink-300#fda5d55.7
purple-300#dab2ff6.0
fuchsia-300#f4a8ff6.3

Code snippets

CSS
.element {
  color: plum;
  background-color: #dda0dd;
  border-color: rgb(221 160 221);
  outline-color: oklch(78.3% 0.108 326.5);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let plum = Color(red: 0.867, green: 0.627, blue: 0.867)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Plum = Color(0xFFDDA0DD)
Flutter
import 'package:flutter/material.dart';

const plum = Color(0xFFDDA0DD);
Android XML
<!-- 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.