Skip to content

#c9afd4

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

RGB
201, 175, 212
HSL
282°, 30%, 76%
CMYK
5, 18, 0, 17
Luminance
0.4783

Every format

HEX#c9afd4
RGBrgb(201, 175, 212)
HSLhsl(282, 30%, 76%)
CMYKcmyk(5%, 18%, 0%, 17%)
LABlab(74.7 16.1 -15.2)
LCHlch(74.7 22.1 316.6)
OKLCHoklch(0.788 0.059 315.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c9afd4 on white: 1.99:1
AA ✗ fail · AA-large · AAA
Aa
#c9afd4 on black: 10.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.8%
Green68.6%
Blue83.1%

CMYK percentages

Cyan5.2%
Magenta17.5%
Yellow0.0%
Key (black)16.9%

Color previews

#c9afd4 text on a black background

contrast 10.57:1

Card sample

#c9afd4 text on a white background

contrast 1.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(201, 175, 212, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(201, 175, 212, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c9afd4;
background: linear-gradient(135deg, #c9afd4, #D4AFC6);

Monochromatic scale

Palettes built from #c9afd4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c9afd4 in the Color Lab