Skip to content

#dc0afb

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

RGB
220, 10, 251
HSL
292°, 97%, 51%
CMYK
12, 96, 0, 2
Luminance
0.2240

Every format

HEX#dc0afb
RGBrgb(220, 10, 251)
HSLhsl(292, 97%, 51%)
CMYKcmyk(12%, 96%, 0%, 2%)
LABlab(54.5 91.8 -68.4)
LCHlch(54.5 114.5 323.3)
OKLCHoklch(0.649 0.307 321.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc0afb on white: 3.83:1
AA ✗ fail · AA-large · AAA
Aa
#dc0afb on black: 5.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green3.9%
Blue98.4%

CMYK percentages

Cyan12.4%
Magenta96.0%
Yellow0.0%
Key (black)1.6%

Color previews

#dc0afb text on a black background

contrast 5.48:1

Card sample

#dc0afb text on a white background

contrast 3.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc0afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc0afb in the Color Lab