Skip to content

#af9ecb

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

RGB
175, 158, 203
HSL
263°, 30%, 71%
CMYK
14, 22, 0, 20
Luminance
0.3788

Every format

HEX#af9ecb
RGBrgb(175, 158, 203)
HSLhsl(263, 30%, 71%)
CMYKcmyk(14%, 22%, 0%, 20%)
LABlab(67.9 15.0 -20.8)
LCHlch(67.9 25.6 305.9)
OKLCHoklch(0.729 0.067 302.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af9ecb on white: 2.45:1
AA ✗ fail · AA-large · AAA
Aa
#af9ecb on black: 8.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green62.0%
Blue79.6%

CMYK percentages

Cyan13.8%
Magenta22.2%
Yellow0.0%
Key (black)20.4%

Color previews

#af9ecb text on a black background

contrast 8.58:1

Card sample

#af9ecb text on a white background

contrast 2.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af9ecb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af9ecb in the Color Lab