Skip to content

#dc0cfd

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

RGB
220, 12, 253
HSL
292°, 98%, 52%
CMYK
13, 95, 0, 1
Luminance
0.2257

Every format

HEX#dc0cfd
RGBrgb(220, 12, 253)
HSLhsl(292, 98%, 52%)
CMYKcmyk(13%, 95%, 0%, 1%)
LABlab(54.6 92.0 -69.2)
LCHlch(54.6 115.1 323.1)
OKLCHoklch(0.651 0.307 320.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc0cfd on white: 3.81:1
AA ✗ fail · AA-large · AAA
Aa
#dc0cfd on black: 5.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green4.7%
Blue99.2%

CMYK percentages

Cyan13.0%
Magenta95.3%
Yellow0.0%
Key (black)0.8%

Color previews

#dc0cfd text on a black background

contrast 5.51:1

Card sample

#dc0cfd text on a white background

contrast 3.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc0cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc0cfd in the Color Lab