Skip to content

#d04dfd

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

RGB
208, 77, 253
HSL
285°, 98%, 65%
CMYK
18, 70, 0, 1
Luminance
0.2581

Every format

HEX#d04dfd
RGBrgb(208, 77, 253)
HSLhsl(285, 98%, 65%)
CMYKcmyk(18%, 70%, 0%, 1%)
LABlab(57.9 75.3 -64.1)
LCHlch(57.9 98.9 319.6)
OKLCHoklch(0.670 0.260 316.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d04dfd on white: 3.41:1
AA ✗ fail · AA-large · AAA
Aa
#d04dfd on black: 6.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.6%
Green30.2%
Blue99.2%

CMYK percentages

Cyan17.8%
Magenta69.6%
Yellow0.0%
Key (black)0.8%

Color previews

#d04dfd text on a black background

contrast 6.16:1

Card sample

#d04dfd text on a white background

contrast 3.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d04dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d04dfd in the Color Lab