Skip to content

#d2aaff

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

RGB
210, 170, 255
HSL
268°, 100%, 83%
CMYK
18, 33, 0, 0
Luminance
0.4967

Every format

HEX#d2aaff
RGBrgb(210, 170, 255)
HSLhsl(268, 100%, 83%)
CMYKcmyk(18%, 33%, 0%, 0%)
LABlab(75.9 30.5 -36.7)
LCHlch(75.9 47.7 309.8)
OKLCHoklch(0.804 0.124 305.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.4%
Green66.7%
Blue100.0%

CMYK percentages

Cyan17.6%
Magenta33.3%
Yellow0.0%
Key (black)0.0%

Color previews

#d2aaff text on a black background

contrast 10.93:1

Card sample

#d2aaff text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2aaff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2aaff in the Color Lab