Skip to content

#cc8af3

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

RGB
204, 138, 243
HSL
278°, 81%, 75%
CMYK
16, 43, 0, 5
Luminance
0.3749

Every format

HEX#cc8af3
RGBrgb(204, 138, 243)
HSLhsl(278, 81%, 75%)
CMYKcmyk(16%, 43%, 0%, 5%)
LABlab(67.6 43.5 -43.0)
LCHlch(67.6 61.2 315.3)
OKLCHoklch(0.739 0.161 311.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc8af3 on white: 2.47:1
AA ✗ fail · AA-large · AAA
Aa
#cc8af3 on black: 8.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green54.1%
Blue95.3%

CMYK percentages

Cyan16.0%
Magenta43.2%
Yellow0.0%
Key (black)4.7%

Color previews

#cc8af3 text on a black background

contrast 8.50:1

Card sample

#cc8af3 text on a white background

contrast 2.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc8af3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc8af3 in the Color Lab