Skip to content

#dc2af3

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

RGB
220, 42, 243
HSL
293°, 89%, 56%
CMYK
10, 83, 0, 5
Luminance
0.2334

Every format

HEX#dc2af3
RGBrgb(220, 42, 243)
HSLhsl(293, 89%, 56%)
CMYKcmyk(10%, 83%, 0%, 5%)
LABlab(55.4 86.2 -62.3)
LCHlch(55.4 106.3 324.1)
OKLCHoklch(0.654 0.288 322.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc2af3 on white: 3.70:1
AA ✗ fail · AA-large · AAA
Aa
#dc2af3 on black: 5.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green16.5%
Blue95.3%

CMYK percentages

Cyan9.5%
Magenta82.7%
Yellow0.0%
Key (black)4.7%

Color previews

#dc2af3 text on a black background

contrast 5.67:1

Card sample

#dc2af3 text on a white background

contrast 3.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc2af3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc2af3 in the Color Lab