Skip to content

#cfacf8

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

RGB
207, 172, 248
HSL
268°, 84%, 82%
CMYK
17, 31, 0, 3
Luminance
0.4955

Every format

HEX#cfacf8
RGBrgb(207, 172, 248)
HSLhsl(268, 84%, 82%)
CMYKcmyk(17%, 31%, 0%, 3%)
LABlab(75.8 27.0 -33.1)
LCHlch(75.8 42.7 309.3)
OKLCHoklch(0.802 0.111 305.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfacf8 on white: 1.92:1
AA ✗ fail · AA-large · AAA
Aa
#cfacf8 on black: 10.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green67.5%
Blue97.3%

CMYK percentages

Cyan16.5%
Magenta30.6%
Yellow0.0%
Key (black)2.7%

Color previews

#cfacf8 text on a black background

contrast 10.91:1

Card sample

#cfacf8 text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 172, 248, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 172, 248, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfacf8;
background: linear-gradient(135deg, #cfacf8, #F8ACEE);

Monochromatic scale

Palettes built from #cfacf8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfacf8 in the Color Lab