Skip to content

#db2dfb

a balanced, electric magenta / pink · warm · closest name: magenta

RGB
219, 45, 251
HSL
291°, 96%, 58%
CMYK
13, 82, 0, 2
Luminance
0.2390

Every format

HEX#db2dfb
RGBrgb(219, 45, 251)
HSLhsl(291, 96%, 58%)
CMYKcmyk(13%, 82%, 0%, 2%)
LABlab(56.0 86.7 -65.9)
LCHlch(56.0 108.8 322.8)
OKLCHoklch(0.659 0.291 320.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#db2dfb on white: 3.63:1
AA ✗ fail · AA-large · AAA
Aa
#db2dfb on black: 5.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.9%
Green17.6%
Blue98.4%

CMYK percentages

Cyan12.7%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#db2dfb text on a black background

contrast 5.78:1

Card sample

#db2dfb text on a white background

contrast 3.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #db2dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #db2dfb in the Color Lab