Skip to content

#afbab2

a light, muted gray · cool · closest name: silver

RGB
175, 186, 178
HSL
136°, 7%, 71%
CMYK
6, 0, 4, 27
Luminance
0.4745

Every format

HEX#afbab2
RGBrgb(175, 186, 178)
HSLhsl(136, 7%, 71%)
CMYKcmyk(6%, 0%, 4%, 27%)
LABlab(74.5 -5.3 2.7)
LCHlch(74.5 6.0 152.8)
OKLCHoklch(0.778 0.017 154.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afbab2 on white: 2.00:1
AA ✗ fail · AA-large · AAA
Aa
#afbab2 on black: 10.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green72.9%
Blue69.8%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow4.3%
Key (black)27.1%

Color previews

#afbab2 text on a black background

contrast 10.49:1

Card sample

#afbab2 text on a white background

contrast 2.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afbab2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afbab2 in the Color Lab