Skip to content

#cc2cf3

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

RGB
204, 44, 243
HSL
288°, 89%, 56%
CMYK
16, 82, 0, 5
Luminance
0.2111

Every format

HEX#cc2cf3
RGBrgb(204, 44, 243)
HSLhsl(288, 89%, 56%)
CMYKcmyk(16%, 82%, 0%, 5%)
LABlab(53.1 83.0 -66.2)
LCHlch(53.1 106.2 321.4)
OKLCHoklch(0.633 0.281 318.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2cf3 on white: 4.02:1
AA ✗ fail · AA-large · AAA
Aa
#cc2cf3 on black: 5.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green17.3%
Blue95.3%

CMYK percentages

Cyan16.0%
Magenta81.9%
Yellow0.0%
Key (black)4.7%

Color previews

#cc2cf3 text on a black background

contrast 5.22:1

Card sample

#cc2cf3 text on a white background

contrast 4.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2cf3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2cf3 in the Color Lab