Skip to content

#d02cfd

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

RGB
208, 44, 253
HSL
287°, 98%, 58%
CMYK
18, 83, 0, 1
Luminance
0.2230

Every format

HEX#d02cfd
RGBrgb(208, 44, 253)
HSLhsl(287, 98%, 58%)
CMYKcmyk(18%, 83%, 0%, 1%)
LABlab(54.4 85.4 -69.7)
LCHlch(54.4 110.3 320.8)
OKLCHoklch(0.645 0.289 317.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d02cfd on white: 3.85:1
AA ✗ fail · AA-large · AAA
Aa
#d02cfd on black: 5.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

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

Color previews

#d02cfd text on a black background

contrast 5.46:1

Card sample

#d02cfd text on a white background

contrast 3.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d02cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d02cfd in the Color Lab