Skip to content

#d4a2fd

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

RGB
212, 162, 253
HSL
273°, 96%, 81%
CMYK
16, 36, 0, 1
Luminance
0.4693

Every format

HEX#d4a2fd
RGBrgb(212, 162, 253)
HSLhsl(273, 96%, 81%)
CMYKcmyk(16%, 36%, 0%, 1%)
LABlab(74.2 35.0 -38.3)
LCHlch(74.2 51.9 312.5)
OKLCHoklch(0.791 0.136 308.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4a2fd on white: 2.02:1
AA ✗ fail · AA-large · AAA
Aa
#d4a2fd on black: 10.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green63.5%
Blue99.2%

CMYK percentages

Cyan16.2%
Magenta36.0%
Yellow0.0%
Key (black)0.8%

Color previews

#d4a2fd text on a black background

contrast 10.39:1

Card sample

#d4a2fd text on a white background

contrast 2.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(212, 162, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(212, 162, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d4a2fd;
background: linear-gradient(135deg, #d4a2fd, #FDA2E9);

Monochromatic scale

Palettes built from #d4a2fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4a2fd in the Color Lab