Skip to content

#cc3ff2

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

RGB
204, 63, 242
HSL
287°, 87%, 60%
CMYK
16, 74, 0, 5
Luminance
0.2280

Every format

HEX#cc3ff2
RGBrgb(204, 63, 242)
HSLhsl(287, 87%, 60%)
CMYKcmyk(16%, 74%, 0%, 5%)
LABlab(54.9 77.5 -62.8)
LCHlch(54.9 99.7 321.0)
OKLCHoklch(0.645 0.264 318.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc3ff2 on white: 3.78:1
AA ✗ fail · AA-large · AAA
Aa
#cc3ff2 on black: 5.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green24.7%
Blue94.9%

CMYK percentages

Cyan15.7%
Magenta74.0%
Yellow0.0%
Key (black)5.1%

Color previews

#cc3ff2 text on a black background

contrast 5.56:1

Card sample

#cc3ff2 text on a white background

contrast 3.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc3ff2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc3ff2 in the Color Lab