Skip to content

#afb9e1

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

RGB
175, 185, 225
HSL
228°, 46%, 78%
CMYK
22, 18, 0, 12
Luminance
0.4925

Every format

HEX#afb9e1
RGBrgb(175, 185, 225)
HSLhsl(228, 46%, 78%)
CMYKcmyk(22%, 18%, 0%, 12%)
LABlab(75.6 5.0 -21.1)
LCHlch(75.6 21.7 283.4)
OKLCHoklch(0.791 0.058 274.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb9e1 on white: 1.94:1
AA ✗ fail · AA-large · AAA
Aa
#afb9e1 on black: 10.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green72.5%
Blue88.2%

CMYK percentages

Cyan22.2%
Magenta17.8%
Yellow0.0%
Key (black)11.8%

Color previews

#afb9e1 text on a black background

contrast 10.85:1

Card sample

#afb9e1 text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb9e1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb9e1 in the Color Lab