Skip to content

#ababab

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

RGB
171, 171, 171
HSL
0°, 0%, 67%
CMYK
0, 0, 0, 33
Luminance
0.4072

Every format

HEX#ababab
RGBrgb(171, 171, 171)
HSLhsl(0, 0%, 67%)
CMYKcmyk(0%, 0%, 0%, 33%)
LABlab(70.0 0.0 0.0)
LCHlch(70.0 0.0 180.0)
OKLCHoklch(0.741 0.000 89.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ababab on white: 2.30:1
AA ✗ fail · AA-large · AAA
Aa
#ababab on black: 9.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green67.1%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow0.0%
Key (black)32.9%

Color previews

#ababab text on a black background

contrast 9.14:1

Card sample

#ababab text on a white background

contrast 2.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ababab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ababab in the Color Lab