Skip to content

#c02df0

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

RGB
192, 45, 240
HSL
285°, 87%, 56%
CMYK
20, 81, 0, 6
Luminance
0.1937

Every format

HEX#c02df0
RGBrgb(192, 45, 240)
HSLhsl(285, 87%, 56%)
CMYKcmyk(20%, 81%, 0%, 6%)
LABlab(51.1 80.3 -67.8)
LCHlch(51.1 105.1 319.8)
OKLCHoklch(0.615 0.274 315.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c02df0 on white: 4.31:1
AA ✗ fail · AA-large · AAA
Aa
#c02df0 on black: 4.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green17.6%
Blue94.1%

CMYK percentages

Cyan20.0%
Magenta81.3%
Yellow0.0%
Key (black)5.9%

Color previews

#c02df0 text on a black background

contrast 4.87:1

Card sample

#c02df0 text on a white background

contrast 4.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c02df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c02df0 in the Color Lab