Skip to content

#c50df5

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

RGB
197, 13, 245
HSL
288°, 92%, 51%
CMYK
20, 95, 0, 4
Luminance
0.1875

Every format

HEX#c50df5
RGBrgb(197, 13, 245)
HSLhsl(288, 92%, 51%)
CMYKcmyk(20%, 95%, 0%, 4%)
LABlab(50.4 87.4 -71.8)
LCHlch(50.4 113.1 320.6)
OKLCHoklch(0.613 0.295 316.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c50df5 on white: 4.42:1
AA ✗ fail · AA-large · AAA
Aa
#c50df5 on black: 4.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red77.3%
Green5.1%
Blue96.1%

CMYK percentages

Cyan19.6%
Magenta94.7%
Yellow0.0%
Key (black)3.9%

Color previews

#c50df5 text on a black background

contrast 4.75:1

Card sample

#c50df5 text on a white background

contrast 4.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c50df5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c50df5 in the Color Lab