Skip to content

#dc2afb

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

RGB
220, 42, 251
HSL
291°, 96%, 58%
CMYK
12, 83, 0, 2
Luminance
0.2384

Every format

HEX#dc2afb
RGBrgb(220, 42, 251)
HSLhsl(291, 96%, 58%)
CMYKcmyk(12%, 83%, 0%, 2%)
LABlab(55.9 87.5 -66.0)
LCHlch(55.9 109.6 323.0)
OKLCHoklch(0.659 0.293 320.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc2afb on white: 3.64:1
AA ✗ fail · AA-large · AAA
Aa
#dc2afb on black: 5.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green16.5%
Blue98.4%

CMYK percentages

Cyan12.4%
Magenta83.3%
Yellow0.0%
Key (black)1.6%

Color previews

#dc2afb text on a black background

contrast 5.77:1

Card sample

#dc2afb text on a white background

contrast 3.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc2afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc2afb in the Color Lab