Skip to content

#afacf1

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

RGB
175, 172, 241
HSL
243°, 71%, 81%
CMYK
27, 29, 0, 6
Luminance
0.4497

Every format

HEX#afacf1
RGBrgb(175, 172, 241)
HSLhsl(243, 71%, 81%)
CMYKcmyk(27%, 29%, 0%, 6%)
LABlab(72.9 15.9 -34.0)
LCHlch(72.9 37.6 295.1)
OKLCHoklch(0.772 0.098 285.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afacf1 on white: 2.10:1
AA ✗ fail · AA-large · AAA
Aa
#afacf1 on black: 9.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.5%
Blue94.5%

CMYK percentages

Cyan27.4%
Magenta28.6%
Yellow0.0%
Key (black)5.5%

Color previews

#afacf1 text on a black background

contrast 9.99:1

Card sample

#afacf1 text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afacf1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afacf1 in the Color Lab