Skip to content

#cc2ff7

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

RGB
204, 47, 247
HSL
287°, 93%, 58%
CMYK
17, 81, 0, 3
Luminance
0.2159

Every format

HEX#cc2ff7
RGBrgb(204, 47, 247)
HSLhsl(287, 93%, 58%)
CMYKcmyk(17%, 81%, 0%, 3%)
LABlab(53.6 83.0 -67.7)
LCHlch(53.6 107.1 320.8)
OKLCHoklch(0.637 0.282 317.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2ff7 on white: 3.95:1
AA ✗ fail · AA-large · AAA
Aa
#cc2ff7 on black: 5.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green18.4%
Blue96.9%

CMYK percentages

Cyan17.4%
Magenta81.0%
Yellow0.0%
Key (black)3.1%

Color previews

#cc2ff7 text on a black background

contrast 5.32:1

Card sample

#cc2ff7 text on a white background

contrast 3.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2ff7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2ff7 in the Color Lab