Skip to content

#cca2ee

a light, vivid violet · warm · closest name: plum

RGB
204, 162, 238
HSL
273°, 69%, 78%
CMYK
14, 32, 0, 7
Luminance
0.4485

Every format

HEX#cca2ee
RGBrgb(204, 162, 238)
HSLhsl(273, 69%, 78%)
CMYKcmyk(14%, 32%, 0%, 7%)
LABlab(72.8 29.5 -32.3)
LCHlch(72.8 43.7 312.4)
OKLCHoklch(0.777 0.115 309.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cca2ee on white: 2.11:1
AA ✗ fail · AA-large · AAA
Aa
#cca2ee on black: 9.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green63.5%
Blue93.3%

CMYK percentages

Cyan14.3%
Magenta31.9%
Yellow0.0%
Key (black)6.7%

Color previews

#cca2ee text on a black background

contrast 9.97:1

Card sample

#cca2ee text on a white background

contrast 2.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cca2ee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cca2ee in the Color Lab