Skip to content

#dc02ff

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

RGB
220, 2, 255
HSL
292°, 100%, 50%
CMYK
14, 99, 0, 0
Luminance
0.2248

Every format

HEX#dc02ff
RGBrgb(220, 2, 255)
HSLhsl(292, 100%, 50%)
CMYKcmyk(14%, 99%, 0%, 0%)
LABlab(54.5 93.0 -70.5)
LCHlch(54.5 116.7 322.9)
OKLCHoklch(0.650 0.311 320.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red86.3%
Green0.8%
Blue100.0%

CMYK percentages

Cyan13.7%
Magenta99.2%
Yellow0.0%
Key (black)0.0%

Color previews

#dc02ff text on a black background

contrast 5.50:1

Card sample

#dc02ff text on a white background

contrast 3.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc02ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc02ff in the Color Lab