Skip to content

#d17dfd

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

RGB
209, 125, 253
HSL
279°, 97%, 74%
CMYK
17, 51, 0, 1
Luminance
0.3531

Every format

HEX#d17dfd
RGBrgb(209, 125, 253)
HSLhsl(279, 97%, 74%)
CMYKcmyk(17%, 51%, 0%, 1%)
LABlab(66.0 53.8 -51.1)
LCHlch(66.0 74.2 316.5)
OKLCHoklch(0.729 0.194 312.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d17dfd on white: 2.60:1
AA ✗ fail · AA-large · AAA
Aa
#d17dfd on black: 8.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.0%
Green49.0%
Blue99.2%

CMYK percentages

Cyan17.4%
Magenta50.6%
Yellow0.0%
Key (black)0.8%

Color previews

#d17dfd text on a black background

contrast 8.06:1

Card sample

#d17dfd text on a white background

contrast 2.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d17dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d17dfd in the Color Lab