Skip to content

#cc4ffc

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

RGB
204, 79, 252
HSL
283°, 97%, 65%
CMYK
19, 69, 0, 1
Luminance
0.2546

Every format

HEX#cc4ffc
RGBrgb(204, 79, 252)
HSLhsl(283, 97%, 65%)
CMYKcmyk(19%, 69%, 0%, 1%)
LABlab(57.5 73.6 -64.1)
LCHlch(57.5 97.6 318.9)
OKLCHoklch(0.666 0.255 315.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc4ffc on white: 3.45:1
AA ✗ fail · AA-large · AAA
Aa
#cc4ffc on black: 6.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green31.0%
Blue98.8%

CMYK percentages

Cyan19.0%
Magenta68.7%
Yellow0.0%
Key (black)1.2%

Color previews

#cc4ffc text on a black background

contrast 6.09:1

Card sample

#cc4ffc text on a white background

contrast 3.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc4ffc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc4ffc in the Color Lab