Skip to content

#c52df0

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

RGB
197, 45, 240
HSL
287°, 87%, 56%
CMYK
18, 81, 0, 6
Luminance
0.2004

Every format

HEX#c52df0
RGBrgb(197, 45, 240)
HSLhsl(287, 87%, 56%)
CMYKcmyk(18%, 81%, 0%, 6%)
LABlab(51.9 81.1 -66.5)
LCHlch(51.9 104.9 320.6)
OKLCHoklch(0.622 0.275 317.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c52df0 on white: 4.19:1
AA ✗ fail · AA-large · AAA
Aa
#c52df0 on black: 5.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red77.3%
Green17.6%
Blue94.1%

CMYK percentages

Cyan17.9%
Magenta81.3%
Yellow0.0%
Key (black)5.9%

Color previews

#c52df0 text on a black background

contrast 5.01:1

Card sample

#c52df0 text on a white background

contrast 4.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c52df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c52df0 in the Color Lab