Skip to content

#cf9af4

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

RGB
207, 154, 244
HSL
275°, 80%, 78%
CMYK
15, 37, 0, 4
Luminance
0.4291

Every format

HEX#cf9af4
RGBrgb(207, 154, 244)
HSLhsl(275, 80%, 78%)
CMYKcmyk(15%, 37%, 0%, 4%)
LABlab(71.5 36.0 -37.6)
LCHlch(71.5 52.0 313.8)
OKLCHoklch(0.769 0.136 310.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf9af4 on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#cf9af4 on black: 9.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green60.4%
Blue95.7%

CMYK percentages

Cyan15.2%
Magenta36.9%
Yellow0.0%
Key (black)4.3%

Color previews

#cf9af4 text on a black background

contrast 9.58:1

Card sample

#cf9af4 text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf9af4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf9af4 in the Color Lab