Skip to content

#cc4cfd

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

RGB
204, 76, 253
HSL
283°, 98%, 65%
CMYK
19, 70, 0, 1
Luminance
0.2510

Every format

HEX#cc4cfd
RGBrgb(204, 76, 253)
HSLhsl(283, 98%, 65%)
CMYKcmyk(19%, 70%, 0%, 1%)
LABlab(57.2 74.9 -65.2)
LCHlch(57.2 99.3 319.0)
OKLCHoklch(0.664 0.259 314.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc4cfd on white: 3.49:1
AA ✗ fail · AA-large · AAA
Aa
#cc4cfd on black: 6.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green29.8%
Blue99.2%

CMYK percentages

Cyan19.4%
Magenta70.0%
Yellow0.0%
Key (black)0.8%

Color previews

#cc4cfd text on a black background

contrast 6.02:1

Card sample

#cc4cfd text on a white background

contrast 3.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc4cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc4cfd in the Color Lab