Skip to content

#cfacf2

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

RGB
207, 172, 242
HSL
270°, 73%, 81%
CMYK
15, 29, 0, 5
Luminance
0.4918

Every format

HEX#cfacf2
RGBrgb(207, 172, 242)
HSLhsl(270, 73%, 81%)
CMYKcmyk(15%, 29%, 0%, 5%)
LABlab(75.6 25.8 -30.2)
LCHlch(75.6 39.7 310.5)
OKLCHoklch(0.799 0.104 307.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfacf2 on white: 1.94:1
AA ✗ fail · AA-large · AAA
Aa
#cfacf2 on black: 10.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green67.5%
Blue94.9%

CMYK percentages

Cyan14.5%
Magenta28.9%
Yellow0.0%
Key (black)5.1%

Color previews

#cfacf2 text on a black background

contrast 10.84:1

Card sample

#cfacf2 text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfacf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfacf2 in the Color Lab