Skip to content

#d2afe2

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

RGB
210, 175, 226
HSL
281°, 47%, 79%
CMYK
7, 23, 0, 11
Luminance
0.4985

Every format

HEX#d2afe2
RGBrgb(210, 175, 226)
HSLhsl(281, 47%, 79%)
CMYKcmyk(7%, 23%, 0%, 11%)
LABlab(76.0 21.8 -20.9)
LCHlch(76.0 30.2 316.3)
OKLCHoklch(0.801 0.080 315.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.4%
Green68.6%
Blue88.6%

CMYK percentages

Cyan7.1%
Magenta22.6%
Yellow0.0%
Key (black)11.4%

Color previews

#d2afe2 text on a black background

contrast 10.97:1

Card sample

#d2afe2 text on a white background

contrast 1.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2afe2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2afe2 in the Color Lab