Skip to content

#d2abfc

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

RGB
210, 171, 252
HSL
269°, 93%, 83%
CMYK
17, 32, 0, 1
Luminance
0.4986

Every format

HEX#d2abfc
RGBrgb(210, 171, 252)
HSLhsl(269, 93%, 83%)
CMYKcmyk(17%, 32%, 0%, 1%)
LABlab(76.0 29.4 -34.9)
LCHlch(76.0 45.6 310.1)
OKLCHoklch(0.804 0.119 305.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2abfc on white: 1.91:1
AA ✗ fail · AA-large · AAA
Aa
#d2abfc on black: 10.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green67.1%
Blue98.8%

CMYK percentages

Cyan16.7%
Magenta32.1%
Yellow0.0%
Key (black)1.2%

Color previews

#d2abfc text on a black background

contrast 10.97:1

Card sample

#d2abfc text on a white background

contrast 1.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2abfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2abfc in the Color Lab