Skip to content

#d2afdc

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

RGB
210, 175, 220
HSL
287°, 39%, 78%
CMYK
5, 21, 0, 14
Luminance
0.4953

Every format

HEX#d2afdc
RGBrgb(210, 175, 220)
HSLhsl(287, 39%, 78%)
CMYKcmyk(5%, 21%, 0%, 14%)
LABlab(75.8 20.6 -17.9)
LCHlch(75.8 27.3 319.0)
OKLCHoklch(0.799 0.073 318.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2afdc on white: 1.93:1
AA ✗ fail · AA-large · AAA
Aa
#d2afdc on black: 10.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green68.6%
Blue86.3%

CMYK percentages

Cyan4.5%
Magenta20.5%
Yellow0.0%
Key (black)13.7%

Color previews

#d2afdc text on a black background

contrast 10.91:1

Card sample

#d2afdc text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2afdc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2afdc in the Color Lab