Skip to content

#c02dff

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

RGB
192, 45, 255
HSL
282°, 100%, 59%
CMYK
25, 82, 0, 0
Luminance
0.2030

Every format

HEX#c02dff
RGBrgb(192, 45, 255)
HSLhsl(282, 100%, 59%)
CMYKcmyk(25%, 82%, 0%, 0%)
LABlab(52.2 83.1 -74.5)
LCHlch(52.2 111.6 318.1)
OKLCHoklch(0.626 0.286 312.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c02dff on white: 4.15:1
AA ✗ fail · AA-large · AAA
Aa
#c02dff on black: 5.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

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

Color previews

#c02dff text on a black background

contrast 5.06:1

Card sample

#c02dff text on a white background

contrast 4.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c02dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c02dff in the Color Lab