Skip to content

#c20df8

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

RGB
194, 13, 248
HSL
286°, 94%, 51%
CMYK
22, 95, 0, 3
Luminance
0.1853

Every format

HEX#c20df8
RGBrgb(194, 13, 248)
HSLhsl(286, 94%, 51%)
CMYKcmyk(22%, 95%, 0%, 3%)
LABlab(50.1 87.5 -73.9)
LCHlch(50.1 114.5 319.8)
OKLCHoklch(0.611 0.296 315.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c20df8 on white: 4.46:1
AA ✗ fail · AA-large · AAA
Aa
#c20df8 on black: 4.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green5.1%
Blue97.3%

CMYK percentages

Cyan21.8%
Magenta94.8%
Yellow0.0%
Key (black)2.7%

Color previews

#c20df8 text on a black background

contrast 4.71:1

Card sample

#c20df8 text on a white background

contrast 4.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 13, 248, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 13, 248, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c20df8;
background: linear-gradient(135deg, #c20df8, #F80D91);

Monochromatic scale

Palettes built from #c20df8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c20df8 in the Color Lab