Skip to content

#af9ccf

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

RGB
175, 156, 207
HSL
262°, 35%, 71%
CMYK
16, 25, 0, 19
Luminance
0.3740

Every format

HEX#af9ccf
RGBrgb(175, 156, 207)
HSLhsl(262, 35%, 71%)
CMYKcmyk(16%, 25%, 0%, 19%)
LABlab(67.6 17.0 -23.5)
LCHlch(67.6 29.0 305.9)
OKLCHoklch(0.727 0.075 301.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af9ccf on white: 2.48:1
AA ✗ fail · AA-large · AAA
Aa
#af9ccf on black: 8.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green61.2%
Blue81.2%

CMYK percentages

Cyan15.5%
Magenta24.6%
Yellow0.0%
Key (black)18.8%

Color previews

#af9ccf text on a black background

contrast 8.48:1

Card sample

#af9ccf text on a white background

contrast 2.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af9ccf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af9ccf in the Color Lab