Skip to content

#afb7df

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

RGB
175, 183, 223
HSL
230°, 43%, 78%
CMYK
22, 18, 0, 13
Luminance
0.4831

Every format

HEX#afb7df
RGBrgb(175, 183, 223)
HSLhsl(230, 43%, 78%)
CMYKcmyk(22%, 18%, 0%, 13%)
LABlab(75.0 5.7 -20.9)
LCHlch(75.0 21.7 285.1)
OKLCHoklch(0.787 0.058 276.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb7df on white: 1.97:1
AA ✗ fail · AA-large · AAA
Aa
#afb7df on black: 10.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green71.8%
Blue87.5%

CMYK percentages

Cyan21.5%
Magenta17.9%
Yellow0.0%
Key (black)12.5%

Color previews

#afb7df text on a black background

contrast 10.66:1

Card sample

#afb7df text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb7df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb7df in the Color Lab