Skip to content

#afabf1

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

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

Every format

HEX#afabf1
RGBrgb(175, 171, 241)
HSLhsl(243, 71%, 81%)
CMYKcmyk(27%, 29%, 0%, 6%)
LABlab(72.6 16.5 -34.4)
LCHlch(72.6 38.1 295.6)
OKLCHoklch(0.770 0.099 286.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afabf1 on white: 2.12:1
AA ✗ fail · AA-large · AAA
Aa
#afabf1 on black: 9.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan27.4%
Magenta29.0%
Yellow0.0%
Key (black)5.5%

Color previews

#afabf1 text on a black background

contrast 9.92:1

Card sample

#afabf1 text on a white background

contrast 2.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afabf1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afabf1 in the Color Lab