Skip to content

#d92dfb

a balanced, electric magenta / pink · warm · closest name: magenta

RGB
217, 45, 251
HSL
290°, 96%, 58%
CMYK
14, 82, 0, 2
Luminance
0.2359

Every format

HEX#d92dfb
RGBrgb(217, 45, 251)
HSLhsl(290, 96%, 58%)
CMYKcmyk(14%, 82%, 0%, 2%)
LABlab(55.7 86.3 -66.4)
LCHlch(55.7 108.9 322.4)
OKLCHoklch(0.657 0.290 320.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d92dfb on white: 3.67:1
AA ✗ fail · AA-large · AAA
Aa
#d92dfb on black: 5.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.1%
Green17.6%
Blue98.4%

CMYK percentages

Cyan13.5%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#d92dfb text on a black background

contrast 5.72:1

Card sample

#d92dfb text on a white background

contrast 3.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d92dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d92dfb in the Color Lab