Skip to content

#c02def

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

RGB
192, 45, 239
HSL
286°, 86%, 56%
CMYK
20, 81, 0, 6
Luminance
0.1932

Every format

HEX#c02def
RGBrgb(192, 45, 239)
HSLhsl(286, 86%, 56%)
CMYKcmyk(20%, 81%, 0%, 6%)
LABlab(51.1 80.1 -67.3)
LCHlch(51.1 104.7 320.0)
OKLCHoklch(0.614 0.273 315.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c02def on white: 4.32:1
AA ✗ fail · AA-large · AAA
Aa
#c02def on black: 4.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green17.6%
Blue93.7%

CMYK percentages

Cyan19.7%
Magenta81.2%
Yellow0.0%
Key (black)6.3%

Color previews

#c02def text on a black background

contrast 4.86:1

Card sample

#c02def text on a white background

contrast 4.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c02def

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c02def in the Color Lab