Skip to content

#d17df2

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

RGB
209, 125, 242
HSL
283°, 82%, 72%
CMYK
14, 48, 0, 5
Luminance
0.3463

Every format

HEX#d17df2
RGBrgb(209, 125, 242)
HSLhsl(283, 82%, 72%)
CMYKcmyk(14%, 48%, 0%, 5%)
LABlab(65.5 51.6 -45.9)
LCHlch(65.5 69.0 318.3)
OKLCHoklch(0.724 0.183 315.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d17df2 on white: 2.65:1
AA ✗ fail · AA-large · AAA
Aa
#d17df2 on black: 7.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.0%
Green49.0%
Blue94.9%

CMYK percentages

Cyan13.6%
Magenta48.3%
Yellow0.0%
Key (black)5.1%

Color previews

#d17df2 text on a black background

contrast 7.93:1

Card sample

#d17df2 text on a white background

contrast 2.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d17df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d17df2 in the Color Lab