Skip to content

#cc78ff

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

RGB
204, 120, 255
HSL
277°, 100%, 74%
CMYK
20, 53, 0, 0
Luminance
0.3349

Every format

HEX#cc78ff
RGBrgb(204, 120, 255)
HSLhsl(277, 100%, 74%)
CMYKcmyk(20%, 53%, 0%, 0%)
LABlab(64.6 55.5 -54.5)
LCHlch(64.6 77.8 315.5)
OKLCHoklch(0.718 0.202 311.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc78ff on white: 2.73:1
AA ✗ fail · AA-large · AAA
Aa
#cc78ff on black: 7.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green47.1%
Blue100.0%

CMYK percentages

Cyan20.0%
Magenta52.9%
Yellow0.0%
Key (black)0.0%

Color previews

#cc78ff text on a black background

contrast 7.70:1

Card sample

#cc78ff text on a white background

contrast 2.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc78ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc78ff in the Color Lab