Skip to content

#dc0dfb

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

RGB
220, 13, 251
HSL
292°, 97%, 52%
CMYK
12, 95, 0, 2
Luminance
0.2247

Every format

HEX#dc0dfb
RGBrgb(220, 13, 251)
HSLhsl(292, 97%, 52%)
CMYKcmyk(12%, 95%, 0%, 2%)
LABlab(54.5 91.6 -68.2)
LCHlch(54.5 114.2 323.3)
OKLCHoklch(0.649 0.306 321.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc0dfb on white: 3.82:1
AA ✗ fail · AA-large · AAA
Aa
#dc0dfb on black: 5.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green5.1%
Blue98.4%

CMYK percentages

Cyan12.4%
Magenta94.8%
Yellow0.0%
Key (black)1.6%

Color previews

#dc0dfb text on a black background

contrast 5.49:1

Card sample

#dc0dfb text on a white background

contrast 3.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc0dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc0dfb in the Color Lab