Skip to content

#d92dfd

a balanced, electric violet · warm · closest name: magenta

RGB
217, 45, 253
HSL
290°, 98%, 58%
CMYK
14, 82, 0, 1
Luminance
0.2372

Every format

HEX#d92dfd
RGBrgb(217, 45, 253)
HSLhsl(290, 98%, 58%)
CMYKcmyk(14%, 82%, 0%, 1%)
LABlab(55.8 86.7 -67.3)
LCHlch(55.8 109.7 322.2)
OKLCHoklch(0.658 0.292 319.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d92dfd on white: 3.66:1
AA ✗ fail · AA-large · AAA
Aa
#d92dfd on black: 5.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.1%
Green17.6%
Blue99.2%

CMYK percentages

Cyan14.2%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#d92dfd text on a black background

contrast 5.74:1

Card sample

#d92dfd text on a white background

contrast 3.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d92dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d92dfd in the Color Lab