Skip to content

#c2afd2

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

RGB
194, 175, 210
HSL
273°, 28%, 76%
CMYK
8, 17, 0, 18
Luminance
0.4678

Every format

HEX#c2afd2
RGBrgb(194, 175, 210)
HSLhsl(273, 28%, 76%)
CMYKcmyk(8%, 17%, 0%, 18%)
LABlab(74.0 13.3 -15.2)
LCHlch(74.0 20.2 311.3)
OKLCHoklch(0.781 0.053 309.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2afd2 on white: 2.03:1
AA ✗ fail · AA-large · AAA
Aa
#c2afd2 on black: 10.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green68.6%
Blue82.4%

CMYK percentages

Cyan7.6%
Magenta16.7%
Yellow0.0%
Key (black)17.6%

Color previews

#c2afd2 text on a black background

contrast 10.36:1

Card sample

#c2afd2 text on a white background

contrast 2.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2afd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2afd2 in the Color Lab