Skip to content

#cc4ff2

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

RGB
204, 79, 242
HSL
286°, 86%, 63%
CMYK
16, 67, 0, 5
Luminance
0.2484

Every format

HEX#cc4ff2
RGBrgb(204, 79, 242)
HSLhsl(286, 86%, 63%)
CMYKcmyk(16%, 67%, 0%, 5%)
LABlab(56.9 71.7 -59.5)
LCHlch(56.9 93.1 320.3)
OKLCHoklch(0.660 0.246 317.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc4ff2 on white: 3.52:1
AA ✗ fail · AA-large · AAA
Aa
#cc4ff2 on black: 5.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green31.0%
Blue94.9%

CMYK percentages

Cyan15.7%
Magenta67.4%
Yellow0.0%
Key (black)5.1%

Color previews

#cc4ff2 text on a black background

contrast 5.97:1

Card sample

#cc4ff2 text on a white background

contrast 3.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc4ff2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc4ff2 in the Color Lab