Skip to content

#dc0afd

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

RGB
220, 10, 253
HSL
292°, 98%, 52%
CMYK
13, 96, 0, 1
Luminance
0.2252

Every format

HEX#dc0afd
RGBrgb(220, 10, 253)
HSLhsl(292, 98%, 52%)
CMYKcmyk(13%, 96%, 0%, 1%)
LABlab(54.6 92.1 -69.3)
LCHlch(54.6 115.3 323.1)
OKLCHoklch(0.650 0.308 320.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc0afd on white: 3.81:1
AA ✗ fail · AA-large · AAA
Aa
#dc0afd on black: 5.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green3.9%
Blue99.2%

CMYK percentages

Cyan13.0%
Magenta96.0%
Yellow0.0%
Key (black)0.8%

Color previews

#dc0afd text on a black background

contrast 5.50:1

Card sample

#dc0afd text on a white background

contrast 3.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc0afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc0afd in the Color Lab