Skip to content

#c021ff

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

RGB
192, 33, 255
HSL
283°, 100%, 57%
CMYK
25, 87, 0, 0
Luminance
0.1951

Every format

HEX#c021ff
RGBrgb(192, 33, 255)
HSLhsl(283, 100%, 57%)
CMYKcmyk(25%, 87%, 0%, 0%)
LABlab(51.3 85.7 -75.9)
LCHlch(51.3 114.5 318.5)
OKLCHoklch(0.619 0.293 312.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c021ff on white: 4.28:1
AA ✗ fail · AA-large · AAA
Aa
#c021ff on black: 4.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green12.9%
Blue100.0%

CMYK percentages

Cyan24.7%
Magenta87.1%
Yellow0.0%
Key (black)0.0%

Color previews

#c021ff text on a black background

contrast 4.90:1

Card sample

#c021ff text on a white background

contrast 4.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c021ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c021ff in the Color Lab