Skip to content

#d02df1

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

RGB
208, 45, 241
HSL
290°, 88%, 56%
CMYK
14, 81, 0, 6
Luminance
0.2164

Every format

HEX#d02df1
RGBrgb(208, 45, 241)
HSLhsl(290, 88%, 56%)
CMYKcmyk(14%, 81%, 0%, 6%)
LABlab(53.6 83.1 -64.2)
LCHlch(53.6 105.0 322.3)
OKLCHoklch(0.638 0.280 319.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d02df1 on white: 3.94:1
AA ✗ fail · AA-large · AAA
Aa
#d02df1 on black: 5.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.6%
Green17.6%
Blue94.5%

CMYK percentages

Cyan13.7%
Magenta81.3%
Yellow0.0%
Key (black)5.5%

Color previews

#d02df1 text on a black background

contrast 5.33:1

Card sample

#d02df1 text on a white background

contrast 3.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d02df1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d02df1 in the Color Lab