Skip to content

#afb2dc

a light, soft blue · warm · closest name: lavender

RGB
175, 178, 220
HSL
236°, 39%, 78%
CMYK
21, 19, 0, 14
Luminance
0.4612

Every format

HEX#afb2dc
RGBrgb(175, 178, 220)
HSLhsl(236, 39%, 78%)
CMYKcmyk(21%, 19%, 0%, 14%)
LABlab(73.6 7.7 -21.4)
LCHlch(73.6 22.8 289.8)
OKLCHoklch(0.775 0.060 281.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb2dc on white: 2.05:1
AA ✗ fail · AA-large · AAA
Aa
#afb2dc on black: 10.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green69.8%
Blue86.3%

CMYK percentages

Cyan20.5%
Magenta19.1%
Yellow0.0%
Key (black)13.7%

Color previews

#afb2dc text on a black background

contrast 10.22:1

Card sample

#afb2dc text on a white background

contrast 2.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb2dc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb2dc in the Color Lab