Skip to content

#dc1fd2

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

RGB
220, 31, 210
HSL
303°, 75%, 49%
CMYK
0, 86, 5, 14
Luminance
0.2085

Every format

HEX#dc1fd2
RGBrgb(220, 31, 210)
HSLhsl(303, 75%, 49%)
CMYKcmyk(0%, 86%, 5%, 14%)
LABlab(52.8 83.2 -47.9)
LCHlch(52.8 96.0 330.1)
OKLCHoklch(0.629 0.272 330.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc1fd2 on white: 4.06:1
AA ✗ fail · AA-large · AAA
Aa
#dc1fd2 on black: 5.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green12.2%
Blue82.4%

CMYK percentages

Cyan0.0%
Magenta85.9%
Yellow4.5%
Key (black)13.7%

Color previews

#dc1fd2 text on a black background

contrast 5.17:1

Card sample

#dc1fd2 text on a white background

contrast 4.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc1fd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc1fd2 in the Color Lab