Skip to content

#db4dfb

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

RGB
219, 77, 251
HSL
289°, 96%, 64%
CMYK
13, 69, 0, 2
Luminance
0.2733

Every format

HEX#db4dfb
RGBrgb(219, 77, 251)
HSLhsl(289, 96%, 64%)
CMYKcmyk(13%, 69%, 0%, 2%)
LABlab(59.3 77.2 -60.6)
LCHlch(59.3 98.1 321.9)
OKLCHoklch(0.683 0.262 319.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#db4dfb on white: 3.25:1
AA ✗ fail · AA-large · AAA
Aa
#db4dfb on black: 6.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.9%
Green30.2%
Blue98.4%

CMYK percentages

Cyan12.7%
Magenta69.3%
Yellow0.0%
Key (black)1.6%

Color previews

#db4dfb text on a black background

contrast 6.47:1

Card sample

#db4dfb text on a white background

contrast 3.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #db4dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #db4dfb in the Color Lab