Skip to content

#cc2eee

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

RGB
204, 46, 238
HSL
289°, 85%, 56%
CMYK
14, 81, 0, 7
Luminance
0.2096

Every format

HEX#cc2eee
RGBrgb(204, 46, 238)
HSLhsl(289, 85%, 56%)
CMYKcmyk(14%, 81%, 0%, 7%)
LABlab(52.9 81.7 -63.7)
LCHlch(52.9 103.6 322.1)
OKLCHoklch(0.631 0.276 319.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2eee on white: 4.04:1
AA ✗ fail · AA-large · AAA
Aa
#cc2eee on black: 5.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green18.0%
Blue93.3%

CMYK percentages

Cyan14.3%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#cc2eee text on a black background

contrast 5.19:1

Card sample

#cc2eee text on a white background

contrast 4.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2eee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2eee in the Color Lab