Skip to content

#c04df2

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

RGB
192, 77, 242
HSL
282°, 86%, 63%
CMYK
21, 68, 0, 5
Luminance
0.2293

Every format

HEX#c04df2
RGBrgb(192, 77, 242)
HSLhsl(282, 86%, 63%)
CMYKcmyk(21%, 68%, 0%, 5%)
LABlab(55.0 70.0 -62.7)
LCHlch(55.0 93.9 318.2)
OKLCHoklch(0.643 0.244 313.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c04df2 on white: 3.76:1
AA ✗ fail · AA-large · AAA
Aa
#c04df2 on black: 5.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green30.2%
Blue94.9%

CMYK percentages

Cyan20.7%
Magenta68.2%
Yellow0.0%
Key (black)5.1%

Color previews

#c04df2 text on a black background

contrast 5.59:1

Card sample

#c04df2 text on a white background

contrast 3.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c04df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c04df2 in the Color Lab