Skip to content

#ababaf

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

RGB
171, 171, 175
HSL
240°, 2%, 68%
CMYK
2, 2, 0, 31
Luminance
0.4088

Every format

HEX#ababaf
RGBrgb(171, 171, 175)
HSLhsl(240, 2%, 68%)
CMYKcmyk(2%, 2%, 0%, 31%)
LABlab(70.1 0.8 -2.0)
LCHlch(70.1 2.2 290.3)
OKLCHoklch(0.742 0.006 286.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ababaf on white: 2.29:1
AA ✗ fail · AA-large · AAA
Aa
#ababaf on black: 9.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green67.1%
Blue68.6%

CMYK percentages

Cyan2.3%
Magenta2.3%
Yellow0.0%
Key (black)31.4%

Color previews

#ababaf text on a black background

contrast 9.18:1

Card sample

#ababaf text on a white background

contrast 2.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ababaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ababaf in the Color Lab