Skip to content

#d04df0

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

RGB
208, 77, 240
HSL
288°, 85%, 62%
CMYK
13, 68, 0, 6
Luminance
0.2501

Every format

HEX#d04df0
RGBrgb(208, 77, 240)
HSLhsl(288, 85%, 62%)
CMYKcmyk(13%, 68%, 0%, 6%)
LABlab(57.1 72.9 -58.1)
LCHlch(57.1 93.2 321.5)
OKLCHoklch(0.662 0.248 319.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d04df0 on white: 3.50:1
AA ✗ fail · AA-large · AAA
Aa
#d04df0 on black: 6.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.6%
Green30.2%
Blue94.1%

CMYK percentages

Cyan13.3%
Magenta67.9%
Yellow0.0%
Key (black)5.9%

Color previews

#d04df0 text on a black background

contrast 6.00:1

Card sample

#d04df0 text on a white background

contrast 3.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d04df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d04df0 in the Color Lab