Skip to content

#c02fff

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

RGB
192, 47, 255
HSL
282°, 100%, 59%
CMYK
25, 82, 0, 0
Luminance
0.2046

Every format

HEX#c02fff
RGBrgb(192, 47, 255)
HSLhsl(282, 100%, 59%)
CMYKcmyk(25%, 82%, 0%, 0%)
LABlab(52.4 82.5 -74.2)
LCHlch(52.4 111.0 318.1)
OKLCHoklch(0.627 0.284 312.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c02fff on white: 4.12:1
AA ✗ fail · AA-large · AAA
Aa
#c02fff on black: 5.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green18.4%
Blue100.0%

CMYK percentages

Cyan24.7%
Magenta81.6%
Yellow0.0%
Key (black)0.0%

Color previews

#c02fff text on a black background

contrast 5.09:1

Card sample

#c02fff text on a white background

contrast 4.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c02fff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c02fff in the Color Lab