Skip to content

#afb2f1

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

RGB
175, 178, 241
HSL
237°, 70%, 82%
CMYK
27, 26, 0, 6
Luminance
0.4731

Every format

HEX#afb2f1
RGBrgb(175, 178, 241)
HSLhsl(237, 70%, 82%)
CMYKcmyk(27%, 26%, 0%, 6%)
LABlab(74.4 12.6 -31.7)
LCHlch(74.4 34.1 291.7)
OKLCHoklch(0.784 0.089 282.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb2f1 on white: 2.01:1
AA ✗ fail · AA-large · AAA
Aa
#afb2f1 on black: 10.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green69.8%
Blue94.5%

CMYK percentages

Cyan27.4%
Magenta26.1%
Yellow0.0%
Key (black)5.5%

Color previews

#afb2f1 text on a black background

contrast 10.46:1

Card sample

#afb2f1 text on a white background

contrast 2.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb2f1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb2f1 in the Color Lab