Skip to content

#d04dfb

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

RGB
208, 77, 251
HSL
285°, 96%, 64%
CMYK
17, 69, 0, 2
Luminance
0.2568

Every format

HEX#d04dfb
RGBrgb(208, 77, 251)
HSLhsl(285, 96%, 64%)
CMYKcmyk(17%, 69%, 0%, 2%)
LABlab(57.7 75.0 -63.2)
LCHlch(57.7 98.0 319.9)
OKLCHoklch(0.669 0.258 316.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d04dfb on white: 3.42:1
AA ✗ fail · AA-large · AAA
Aa
#d04dfb on black: 6.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.6%
Green30.2%
Blue98.4%

CMYK percentages

Cyan17.1%
Magenta69.3%
Yellow0.0%
Key (black)1.6%

Color previews

#d04dfb text on a black background

contrast 6.14:1

Card sample

#d04dfb text on a white background

contrast 3.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d04dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d04dfb in the Color Lab