Skip to content

#d02df9

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

RGB
208, 45, 249
HSL
288°, 94%, 58%
CMYK
17, 82, 0, 2
Luminance
0.2213

Every format

HEX#d02df9
RGBrgb(208, 45, 249)
HSLhsl(288, 94%, 58%)
CMYKcmyk(17%, 82%, 0%, 2%)
LABlab(54.2 84.5 -67.8)
LCHlch(54.2 108.3 321.3)
OKLCHoklch(0.643 0.286 318.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d02df9 on white: 3.87:1
AA ✗ fail · AA-large · AAA
Aa
#d02df9 on black: 5.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.6%
Green17.6%
Blue97.6%

CMYK percentages

Cyan16.5%
Magenta81.9%
Yellow0.0%
Key (black)2.4%

Color previews

#d02df9 text on a black background

contrast 5.43:1

Card sample

#d02df9 text on a white background

contrast 3.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d02df9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d02df9 in the Color Lab