Skip to content

#dc2af2

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

RGB
220, 42, 242
HSL
293°, 89%, 56%
CMYK
9, 83, 0, 5
Luminance
0.2328

Every format

HEX#dc2af2
RGBrgb(220, 42, 242)
HSLhsl(293, 89%, 56%)
CMYKcmyk(9%, 83%, 0%, 5%)
LABlab(55.4 86.0 -61.9)
LCHlch(55.4 105.9 324.3)
OKLCHoklch(0.654 0.287 322.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc2af2 on white: 3.71:1
AA ✗ fail · AA-large · AAA
Aa
#dc2af2 on black: 5.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green16.5%
Blue94.9%

CMYK percentages

Cyan9.1%
Magenta82.6%
Yellow0.0%
Key (black)5.1%

Color previews

#dc2af2 text on a black background

contrast 5.66:1

Card sample

#dc2af2 text on a white background

contrast 3.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc2af2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc2af2 in the Color Lab