Skip to content

#d40fdf

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

RGB
212, 15, 223
HSL
297°, 87%, 47%
CMYK
5, 93, 0, 13
Luminance
0.1967

Every format

HEX#d40fdf
RGBrgb(212, 15, 223)
HSLhsl(297, 87%, 47%)
CMYKcmyk(5%, 93%, 0%, 13%)
LABlab(51.5 85.9 -57.5)
LCHlch(51.5 103.4 326.2)
OKLCHoklch(0.620 0.284 325.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d40fdf on white: 4.26:1
AA ✗ fail · AA-large · AAA
Aa
#d40fdf on black: 4.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green5.9%
Blue87.5%

CMYK percentages

Cyan4.9%
Magenta93.3%
Yellow0.0%
Key (black)12.5%

Color previews

#d40fdf text on a black background

contrast 4.93:1

Card sample

#d40fdf text on a white background

contrast 4.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d40fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d40fdf in the Color Lab