Skip to content

#c02cfd

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

RGB
192, 44, 253
HSL
283°, 98%, 58%
CMYK
24, 83, 0, 1
Luminance
0.2010

Every format

HEX#c02cfd
RGBrgb(192, 44, 253)
HSLhsl(283, 98%, 58%)
CMYKcmyk(24%, 83%, 0%, 1%)
LABlab(52.0 82.9 -73.7)
LCHlch(52.0 111.0 318.4)
OKLCHoklch(0.624 0.285 312.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c02cfd on white: 4.18:1
AA ✗ fail · AA-large · AAA
Aa
#c02cfd on black: 5.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green17.3%
Blue99.2%

CMYK percentages

Cyan24.1%
Magenta82.6%
Yellow0.0%
Key (black)0.8%

Color previews

#c02cfd text on a black background

contrast 5.02:1

Card sample

#c02cfd text on a white background

contrast 4.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(192, 44, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(192, 44, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c02cfd;
background: linear-gradient(135deg, #c02cfd, #FD2CAF);

Monochromatic scale

Palettes built from #c02cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c02cfd in the Color Lab