Skip to content

#afabf4

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

RGB
175, 171, 244
HSL
243°, 77%, 81%
CMYK
28, 30, 0, 4
Luminance
0.4477

Every format

HEX#afabf4
RGBrgb(175, 171, 244)
HSLhsl(243, 77%, 81%)
CMYKcmyk(28%, 30%, 0%, 4%)
LABlab(72.7 17.2 -35.8)
LCHlch(72.7 39.8 295.7)
OKLCHoklch(0.771 0.103 286.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afabf4 on white: 2.11:1
AA ✗ fail · AA-large · AAA
Aa
#afabf4 on black: 9.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.1%
Blue95.7%

CMYK percentages

Cyan28.3%
Magenta29.9%
Yellow0.0%
Key (black)4.3%

Color previews

#afabf4 text on a black background

contrast 9.95:1

Card sample

#afabf4 text on a white background

contrast 2.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afabf4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afabf4 in the Color Lab