Skip to content

#cc5fe2

a balanced, vivid violet · warm · closest name: orchid

RGB
204, 95, 226
HSL
290°, 69%, 63%
CMYK
10, 58, 0, 11
Luminance
0.2651

Every format

HEX#cc5fe2
RGBrgb(204, 95, 226)
HSLhsl(290, 69%, 63%)
CMYKcmyk(10%, 58%, 0%, 11%)
LABlab(58.5 61.8 -48.0)
LCHlch(58.5 78.2 322.2)
OKLCHoklch(0.669 0.210 320.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc5fe2 on white: 3.33:1
AA ✗ fail · AA-large · AAA
Aa
#cc5fe2 on black: 6.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green37.3%
Blue88.6%

CMYK percentages

Cyan9.7%
Magenta58.0%
Yellow0.0%
Key (black)11.4%

Color previews

#cc5fe2 text on a black background

contrast 6.30:1

Card sample

#cc5fe2 text on a white background

contrast 3.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc5fe2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc5fe2 in the Color Lab