Skip to content

#d02ff2

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

RGB
208, 47, 242
HSL
290°, 88%, 57%
CMYK
14, 81, 0, 5
Luminance
0.2185

Every format

HEX#d02ff2
RGBrgb(208, 47, 242)
HSLhsl(290, 88%, 57%)
CMYKcmyk(14%, 81%, 0%, 5%)
LABlab(53.9 82.8 -64.4)
LCHlch(53.9 104.9 322.1)
OKLCHoklch(0.639 0.279 319.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d02ff2 on white: 3.91:1
AA ✗ fail · AA-large · AAA
Aa
#d02ff2 on black: 5.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.6%
Green18.4%
Blue94.9%

CMYK percentages

Cyan14.0%
Magenta80.6%
Yellow0.0%
Key (black)5.1%

Color previews

#d02ff2 text on a black background

contrast 5.37:1

Card sample

#d02ff2 text on a white background

contrast 3.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d02ff2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d02ff2 in the Color Lab