Skip to content

#d02df3

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

RGB
208, 45, 243
HSL
289°, 89%, 57%
CMYK
14, 82, 0, 5
Luminance
0.2176

Every format

HEX#d02df3
RGBrgb(208, 45, 243)
HSLhsl(289, 89%, 57%)
CMYKcmyk(14%, 82%, 0%, 5%)
LABlab(53.8 83.5 -65.1)
LCHlch(53.8 105.8 322.1)
OKLCHoklch(0.639 0.281 319.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d02df3 on white: 3.92:1
AA ✗ fail · AA-large · AAA
Aa
#d02df3 on black: 5.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.6%
Green17.6%
Blue95.3%

CMYK percentages

Cyan14.4%
Magenta81.5%
Yellow0.0%
Key (black)4.7%

Color previews

#d02df3 text on a black background

contrast 5.35:1

Card sample

#d02df3 text on a white background

contrast 3.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d02df3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d02df3 in the Color Lab