Skip to content

#c4afe2

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

RGB
196, 175, 226
HSL
265°, 47%, 79%
CMYK
13, 23, 0, 11
Luminance
0.4789

Every format

HEX#c4afe2
RGBrgb(196, 175, 226)
HSLhsl(265, 47%, 79%)
CMYKcmyk(13%, 23%, 0%, 11%)
LABlab(74.8 17.3 -22.8)
LCHlch(74.8 28.6 307.1)
OKLCHoklch(0.789 0.075 303.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red76.9%
Green68.6%
Blue88.6%

CMYK percentages

Cyan13.3%
Magenta22.6%
Yellow0.0%
Key (black)11.4%

Color previews

#c4afe2 text on a black background

contrast 10.58:1

Card sample

#c4afe2 text on a white background

contrast 1.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c4afe2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c4afe2 in the Color Lab