Skip to content

#cc4dff

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

RGB
204, 77, 255
HSL
283°, 100%, 65%
CMYK
20, 70, 0, 0
Luminance
0.2537

Every format

HEX#cc4dff
RGBrgb(204, 77, 255)
HSLhsl(283, 100%, 65%)
CMYKcmyk(20%, 70%, 0%, 0%)
LABlab(57.4 74.9 -65.9)
LCHlch(57.4 99.8 318.7)
OKLCHoklch(0.666 0.260 314.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc4dff on white: 3.46:1
AA ✗ fail · AA-large · AAA
Aa
#cc4dff on black: 6.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green30.2%
Blue100.0%

CMYK percentages

Cyan20.0%
Magenta69.8%
Yellow0.0%
Key (black)0.0%

Color previews

#cc4dff text on a black background

contrast 6.07:1

Card sample

#cc4dff text on a white background

contrast 3.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc4dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc4dff in the Color Lab