Skip to content

#d90dfd

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

RGB
217, 13, 253
HSL
291°, 98%, 52%
CMYK
14, 95, 0, 1
Luminance
0.2213

Every format

HEX#d90dfd
RGBrgb(217, 13, 253)
HSLhsl(291, 98%, 52%)
CMYKcmyk(14%, 95%, 0%, 1%)
LABlab(54.2 91.5 -70.0)
LCHlch(54.2 115.2 322.6)
OKLCHoklch(0.647 0.306 320.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d90dfd on white: 3.87:1
AA ✗ fail · AA-large · AAA
Aa
#d90dfd on black: 5.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.1%
Green5.1%
Blue99.2%

CMYK percentages

Cyan14.2%
Magenta94.9%
Yellow0.0%
Key (black)0.8%

Color previews

#d90dfd text on a black background

contrast 5.43:1

Card sample

#d90dfd text on a white background

contrast 3.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d90dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d90dfd in the Color Lab