Skip to content

#d4afdc

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

RGB
212, 175, 220
HSL
289°, 39%, 78%
CMYK
4, 21, 0, 14
Luminance
0.4982

Every format

HEX#d4afdc
RGBrgb(212, 175, 220)
HSLhsl(289, 39%, 78%)
CMYKcmyk(4%, 21%, 0%, 14%)
LABlab(76.0 21.3 -17.6)
LCHlch(76.0 27.6 320.4)
OKLCHoklch(0.801 0.074 320.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4afdc on white: 1.92:1
AA ✗ fail · AA-large · AAA
Aa
#d4afdc on black: 10.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green68.6%
Blue86.3%

CMYK percentages

Cyan3.6%
Magenta20.5%
Yellow0.0%
Key (black)13.7%

Color previews

#d4afdc text on a black background

contrast 10.96:1

Card sample

#d4afdc text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d4afdc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4afdc in the Color Lab