Skip to content

#cc4dfb

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

RGB
204, 77, 251
HSL
284°, 96%, 64%
CMYK
19, 69, 0, 2
Luminance
0.2511

Every format

HEX#cc4dfb
RGBrgb(204, 77, 251)
HSLhsl(284, 96%, 64%)
CMYKcmyk(19%, 69%, 0%, 2%)
LABlab(57.2 74.2 -64.1)
LCHlch(57.2 98.0 319.2)
OKLCHoklch(0.663 0.256 315.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green30.2%
Blue98.4%

CMYK percentages

Cyan18.7%
Magenta69.3%
Yellow0.0%
Key (black)1.6%

Color previews

#cc4dfb text on a black background

contrast 6.02:1

Card sample

#cc4dfb text on a white background

contrast 3.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc4dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc4dfb in the Color Lab