Skip to content

#dc4dfb

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

RGB
220, 77, 251
HSL
289°, 96%, 64%
CMYK
12, 69, 0, 2
Luminance
0.2749

Every format

HEX#dc4dfb
RGBrgb(220, 77, 251)
HSLhsl(289, 96%, 64%)
CMYKcmyk(12%, 69%, 0%, 2%)
LABlab(59.4 77.4 -60.4)
LCHlch(59.4 98.1 322.0)
OKLCHoklch(0.684 0.262 319.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc4dfb on white: 3.23:1
AA ✗ fail · AA-large · AAA
Aa
#dc4dfb on black: 6.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green30.2%
Blue98.4%

CMYK percentages

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

Color previews

#dc4dfb text on a black background

contrast 6.50:1

Card sample

#dc4dfb text on a white background

contrast 3.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc4dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc4dfb in the Color Lab