Skip to content

#cc4bfd

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

RGB
204, 75, 253
HSL
284°, 98%, 64%
CMYK
19, 70, 0, 1
Luminance
0.2496

Every format

HEX#cc4bfd
RGBrgb(204, 75, 253)
HSLhsl(284, 98%, 64%)
CMYKcmyk(19%, 70%, 0%, 1%)
LABlab(57.0 75.3 -65.4)
LCHlch(57.0 99.7 319.0)
OKLCHoklch(0.663 0.260 314.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc4bfd on white: 3.50:1
AA ✗ fail · AA-large · AAA
Aa
#cc4bfd on black: 5.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green29.4%
Blue99.2%

CMYK percentages

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

Color previews

#cc4bfd text on a black background

contrast 5.99:1

Card sample

#cc4bfd text on a white background

contrast 3.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc4bfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc4bfd in the Color Lab