Skip to content

#9e9e50

a balanced, soft yellow · cool · closest name: olive

RGB
158, 158, 80
HSL
60°, 33%, 47%
CMYK
0, 0, 49, 38
Luminance
0.3230

Every format

HEX#9e9e50
RGBrgb(158, 158, 80)
HSLhsl(60, 33%, 47%)
CMYKcmyk(0%, 0%, 49%, 38%)
LABlab(63.6 -11.3 40.4)
LCHlch(63.6 41.9 105.6)
OKLCHoklch(0.682 0.101 108.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9e9e50 on white: 2.81:1
AA ✗ fail · AA-large · AAA
Aa
#9e9e50 on black: 7.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.0%
Green62.0%
Blue31.4%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow49.4%
Key (black)38.0%

Color previews

#9e9e50 text on a black background

contrast 7.46:1

Card sample

#9e9e50 text on a white background

contrast 2.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(158, 158, 80, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(158, 158, 80, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9e9e50;
background: linear-gradient(135deg, #9e9e50, #6A9E50);

Monochromatic scale

Palettes built from #9e9e50

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9e9e50 in the Color Lab