Skip to content

#d40dfb

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

RGB
212, 13, 251
HSL
290°, 97%, 52%
CMYK
16, 95, 0, 2
Luminance
0.2125

Every format

HEX#d40dfb
RGBrgb(212, 13, 251)
HSLhsl(290, 97%, 52%)
CMYKcmyk(16%, 95%, 0%, 2%)
LABlab(53.2 90.5 -70.4)
LCHlch(53.2 114.6 322.1)
OKLCHoklch(0.638 0.303 319.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d40dfb on white: 4.00:1
AA ✗ fail · AA-large · AAA
Aa
#d40dfb on black: 5.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green5.1%
Blue98.4%

CMYK percentages

Cyan15.5%
Magenta94.8%
Yellow0.0%
Key (black)1.6%

Color previews

#d40dfb text on a black background

contrast 5.25:1

Card sample

#d40dfb text on a white background

contrast 4.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d40dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d40dfb in the Color Lab