Skip to content

#dc0cdf

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

RGB
220, 12, 223
HSL
299°, 90%, 46%
CMYK
1, 95, 0, 13
Luminance
0.2081

Every format

HEX#dc0cdf
RGBrgb(220, 12, 223)
HSLhsl(299, 90%, 46%)
CMYKcmyk(1%, 95%, 0%, 13%)
LABlab(52.7 87.4 -55.4)
LCHlch(52.7 103.5 327.7)
OKLCHoklch(0.631 0.288 327.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc0cdf on white: 4.07:1
AA ✗ fail · AA-large · AAA
Aa
#dc0cdf on black: 5.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green4.7%
Blue87.5%

CMYK percentages

Cyan1.3%
Magenta94.6%
Yellow0.0%
Key (black)12.5%

Color previews

#dc0cdf text on a black background

contrast 5.16:1

Card sample

#dc0cdf text on a white background

contrast 4.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc0cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc0cdf in the Color Lab