Skip to content

#cc6cff

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

RGB
204, 108, 255
HSL
279°, 100%, 71%
CMYK
20, 58, 0, 0
Luminance
0.3078

Every format

HEX#cc6cff
RGBrgb(204, 108, 255)
HSLhsl(279, 100%, 71%)
CMYKcmyk(20%, 58%, 0%, 0%)
LABlab(62.3 61.4 -58.0)
LCHlch(62.3 84.5 316.6)
OKLCHoklch(0.701 0.220 312.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc6cff on white: 2.93:1
AA ✗ fail · AA-large · AAA
Aa
#cc6cff on black: 7.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green42.4%
Blue100.0%

CMYK percentages

Cyan20.0%
Magenta57.6%
Yellow0.0%
Key (black)0.0%

Color previews

#cc6cff text on a black background

contrast 7.16:1

Card sample

#cc6cff text on a white background

contrast 2.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc6cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc6cff in the Color Lab