Skip to content

#9b8ba2

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

RGB
155, 139, 162
HSL
282°, 11%, 59%
CMYK
4, 14, 0, 37
Luminance
0.2804

Every format

HEX#9b8ba2
RGBrgb(155, 139, 162)
HSLhsl(282, 11%, 59%)
CMYKcmyk(4%, 14%, 0%, 37%)
LABlab(59.9 10.4 -10.0)
LCHlch(59.9 14.4 316.2)
OKLCHoklch(0.658 0.038 315.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b8ba2 on white: 3.18:1
AA ✗ fail · AA-large · AAA
Aa
#9b8ba2 on black: 6.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green54.5%
Blue63.5%

CMYK percentages

Cyan4.3%
Magenta14.2%
Yellow0.0%
Key (black)36.5%

Color previews

#9b8ba2 text on a black background

contrast 6.61:1

Card sample

#9b8ba2 text on a white background

contrast 3.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b8ba2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b8ba2 in the Color Lab