Skip to content

#d47dfd

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

RGB
212, 125, 253
HSL
281°, 97%, 74%
CMYK
16, 51, 0, 1
Luminance
0.3576

Every format

HEX#d47dfd
RGBrgb(212, 125, 253)
HSLhsl(281, 97%, 74%)
CMYKcmyk(16%, 51%, 0%, 1%)
LABlab(66.3 54.6 -50.5)
LCHlch(66.3 74.4 317.2)
OKLCHoklch(0.733 0.196 313.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d47dfd on white: 2.58:1
AA ✗ fail · AA-large · AAA
Aa
#d47dfd on black: 8.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green49.0%
Blue99.2%

CMYK percentages

Cyan16.2%
Magenta50.6%
Yellow0.0%
Key (black)0.8%

Color previews

#d47dfd text on a black background

contrast 8.15:1

Card sample

#d47dfd text on a white background

contrast 2.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d47dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d47dfd in the Color Lab