Skip to content

#d2affc

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

RGB
210, 175, 252
HSL
267°, 93%, 84%
CMYK
17, 31, 0, 1
Luminance
0.5139

Every format

HEX#d2affc
RGBrgb(210, 175, 252)
HSLhsl(267, 93%, 84%)
CMYKcmyk(17%, 31%, 0%, 1%)
LABlab(76.9 27.2 -33.5)
LCHlch(76.9 43.1 309.1)
OKLCHoklch(0.812 0.112 304.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2affc on white: 1.86:1
AA ✗ fail · AA-large · AAA
Aa
#d2affc on black: 11.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green68.6%
Blue98.8%

CMYK percentages

Cyan16.7%
Magenta30.6%
Yellow0.0%
Key (black)1.2%

Color previews

#d2affc text on a black background

contrast 11.28:1

Card sample

#d2affc text on a white background

contrast 1.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2affc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2affc in the Color Lab