Skip to content

#9f9ba8

a balanced, muted gray · warm · closest name: gray

RGB
159, 155, 168
HSL
259°, 7%, 63%
CMYK
5, 8, 0, 34
Luminance
0.3364

Every format

HEX#9f9ba8
RGBrgb(159, 155, 168)
HSLhsl(259, 7%, 63%)
CMYKcmyk(5%, 8%, 0%, 34%)
LABlab(64.7 4.0 -6.3)
LCHlch(64.7 7.4 302.5)
OKLCHoklch(0.697 0.019 299.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f9ba8 on white: 2.72:1
AA ✗ fail · AA-large · AAA
Aa
#9f9ba8 on black: 7.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green60.8%
Blue65.9%

CMYK percentages

Cyan5.4%
Magenta7.7%
Yellow0.0%
Key (black)34.1%

Color previews

#9f9ba8 text on a black background

contrast 7.73:1

Card sample

#9f9ba8 text on a white background

contrast 2.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(159, 155, 168, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 155, 168, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9f9ba8;
background: linear-gradient(135deg, #9f9ba8, #A89BA8);

Monochromatic scale

Palettes built from #9f9ba8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f9ba8 in the Color Lab