Skip to content

#dc40fd

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

RGB
220, 64, 253
HSL
290°, 98%, 62%
CMYK
13, 75, 0, 1
Luminance
0.2597

Every format

HEX#dc40fd
RGBrgb(220, 64, 253)
HSLhsl(290, 98%, 62%)
CMYKcmyk(13%, 75%, 0%, 1%)
LABlab(58.0 82.1 -63.7)
LCHlch(58.0 103.9 322.2)
OKLCHoklch(0.674 0.277 319.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc40fd on white: 3.39:1
AA ✗ fail · AA-large · AAA
Aa
#dc40fd on black: 6.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green25.1%
Blue99.2%

CMYK percentages

Cyan13.0%
Magenta74.7%
Yellow0.0%
Key (black)0.8%

Color previews

#dc40fd text on a black background

contrast 6.19:1

Card sample

#dc40fd text on a white background

contrast 3.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc40fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc40fd in the Color Lab