Skip to content

#c02cff

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

RGB
192, 44, 255
HSL
282°, 100%, 59%
CMYK
25, 83, 0, 0
Luminance
0.2023

Every format

HEX#c02cff
RGBrgb(192, 44, 255)
HSLhsl(282, 100%, 59%)
CMYKcmyk(25%, 83%, 0%, 0%)
LABlab(52.1 83.3 -74.6)
LCHlch(52.1 111.8 318.2)
OKLCHoklch(0.625 0.286 312.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c02cff on white: 4.16:1
AA ✗ fail · AA-large · AAA
Aa
#c02cff on black: 5.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green17.3%
Blue100.0%

CMYK percentages

Cyan24.7%
Magenta82.7%
Yellow0.0%
Key (black)0.0%

Color previews

#c02cff text on a black background

contrast 5.05:1

Card sample

#c02cff text on a white background

contrast 4.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c02cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c02cff in the Color Lab