Skip to content

#d02dfd

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

RGB
208, 45, 253
HSL
287°, 98%, 58%
CMYK
18, 82, 0, 1
Luminance
0.2238

Every format

HEX#d02dfd
RGBrgb(208, 45, 253)
HSLhsl(287, 98%, 58%)
CMYKcmyk(18%, 82%, 0%, 1%)
LABlab(54.4 85.2 -69.6)
LCHlch(54.4 110.0 320.8)
OKLCHoklch(0.646 0.289 317.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan17.8%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#d02dfd text on a black background

contrast 5.48:1

Card sample

#d02dfd text on a white background

contrast 3.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d02dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d02dfd in the Color Lab