Skip to content

#dc4af2

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

RGB
220, 74, 242
HSL
292°, 87%, 62%
CMYK
9, 69, 0, 5
Luminance
0.2652

Every format

HEX#dc4af2
RGBrgb(220, 74, 242)
HSLhsl(292, 87%, 62%)
CMYKcmyk(9%, 69%, 0%, 5%)
LABlab(58.5 76.9 -56.8)
LCHlch(58.5 95.6 323.6)
OKLCHoklch(0.676 0.258 322.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc4af2 on white: 3.33:1
AA ✗ fail · AA-large · AAA
Aa
#dc4af2 on black: 6.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green29.0%
Blue94.9%

CMYK percentages

Cyan9.1%
Magenta69.4%
Yellow0.0%
Key (black)5.1%

Color previews

#dc4af2 text on a black background

contrast 6.30:1

Card sample

#dc4af2 text on a white background

contrast 3.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc4af2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc4af2 in the Color Lab