Skip to content

#df40ff

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

RGB
223, 64, 255
HSL
290°, 100%, 63%
CMYK
13, 75, 0, 0
Luminance
0.2657

Every format

HEX#df40ff
RGBrgb(223, 64, 255)
HSLhsl(290, 100%, 63%)
CMYKcmyk(13%, 75%, 0%, 0%)
LABlab(58.6 83.0 -63.9)
LCHlch(58.6 104.8 322.4)
OKLCHoklch(0.680 0.280 320.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df40ff on white: 3.33:1
AA ✗ fail · AA-large · AAA
Aa
#df40ff on black: 6.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green25.1%
Blue100.0%

CMYK percentages

Cyan12.5%
Magenta74.9%
Yellow0.0%
Key (black)0.0%

Color previews

#df40ff text on a black background

contrast 6.31:1

Card sample

#df40ff text on a white background

contrast 3.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df40ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df40ff in the Color Lab