Skip to content

#d02dfe

a balanced, electric violet · warm · closest name: magenta

RGB
208, 45, 254
HSL
287°, 99%, 59%
CMYK
18, 82, 0, 0
Luminance
0.2244

Every format

HEX#d02dfe
RGBrgb(208, 45, 254)
HSLhsl(287, 99%, 59%)
CMYKcmyk(18%, 82%, 0%, 0%)
LABlab(54.5 85.4 -70.0)
LCHlch(54.5 110.4 320.6)
OKLCHoklch(0.646 0.290 317.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.6%
Green17.6%
Blue99.6%

CMYK percentages

Cyan18.1%
Magenta82.3%
Yellow0.0%
Key (black)0.4%

Color previews

#d02dfe text on a black background

contrast 5.49:1

Card sample

#d02dfe text on a white background

contrast 3.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(208, 45, 254, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(208, 45, 254, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d02dfe;
background: linear-gradient(135deg, #d02dfe, #FE2DA1);

Monochromatic scale

Palettes built from #d02dfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d02dfe in the Color Lab