Skip to content

#c40ef1

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

RGB
196, 14, 241
HSL
288°, 89%, 50%
CMYK
19, 94, 0, 6
Luminance
0.1840

Every format

HEX#c40ef1
RGBrgb(196, 14, 241)
HSLhsl(288, 89%, 50%)
CMYKcmyk(19%, 94%, 0%, 6%)
LABlab(50.0 86.5 -70.2)
LCHlch(50.0 111.4 320.9)
OKLCHoklch(0.609 0.292 317.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c40ef1 on white: 4.49:1
AA ✗ fail · AA-large · AAA
Aa
#c40ef1 on black: 4.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.9%
Green5.5%
Blue94.5%

CMYK percentages

Cyan18.7%
Magenta94.2%
Yellow0.0%
Key (black)5.5%

Color previews

#c40ef1 text on a black background

contrast 4.68:1

Card sample

#c40ef1 text on a white background

contrast 4.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(196, 14, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(196, 14, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c40ef1;
background: linear-gradient(135deg, #c40ef1, #F10E87);

Monochromatic scale

Palettes built from #c40ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c40ef1 in the Color Lab