Skip to content

#d98dfd

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

RGB
217, 141, 253
HSL
281°, 97%, 77%
CMYK
14, 44, 0, 1
Luminance
0.4089

Every format

HEX#d98dfd
RGBrgb(217, 141, 253)
HSLhsl(281, 97%, 77%)
CMYKcmyk(14%, 44%, 0%, 1%)
LABlab(70.1 47.7 -44.6)
LCHlch(70.1 65.3 316.9)
OKLCHoklch(0.762 0.172 314.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d98dfd on white: 2.29:1
AA ✗ fail · AA-large · AAA
Aa
#d98dfd on black: 9.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.1%
Green55.3%
Blue99.2%

CMYK percentages

Cyan14.2%
Magenta44.3%
Yellow0.0%
Key (black)0.8%

Color previews

#d98dfd text on a black background

contrast 9.18:1

Card sample

#d98dfd text on a white background

contrast 2.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d98dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d98dfd in the Color Lab