Skip to content

#d4a7df

a light, vivid violet · warm · closest name: plum

RGB
212, 167, 223
HSL
288°, 47%, 77%
CMYK
5, 25, 0, 13
Luminance
0.4696

Every format

HEX#d4a7df
RGBrgb(212, 167, 223)
HSLhsl(288, 47%, 77%)
CMYKcmyk(5%, 25%, 0%, 13%)
LABlab(74.2 26.2 -21.9)
LCHlch(74.2 34.2 320.0)
OKLCHoklch(0.787 0.092 319.6)

Copy-ready code

/* CSS */
color: #d4a7df;
background-color: #d4a7df;
/* Tailwind (arbitrary) */
class="text-[#d4a7df] bg-[#d4a7df]"
/* SCSS */
$brand: #d4a7df;
/* SwiftUI */
Color(red: 0.831, green: 0.655, blue: 0.875)
/* Android */
Color.parseColor("#d4a7df")

Accessibility — WCAG contrast

Aa
#d4a7df on white: 2.02:1
AA ✗ fail · AA-large · AAA
Aa
#d4a7df on black: 10.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green65.5%
Blue87.5%

CMYK percentages

Cyan4.9%
Magenta25.1%
Yellow0.0%
Key (black)12.5%

Color previews

#d4a7df text on a black background

contrast 10.39:1

Card sample

#d4a7df text on a white background

contrast 2.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #d4a7df;
Background color
Panel with #d4a7df background
background-color: #d4a7df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #d4a7df;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(212, 167, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(212, 167, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d4a7df;
background: linear-gradient(135deg, #d4a7df, #DFA7C5);

Monochromatic scale

Palettes built from #d4a7df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4a7df in the Color Lab