Skip to content

#9b8917

a dark, vivid yellow · cool · closest name: olive

RGB
155, 137, 23
HSL
52°, 74%, 35%
CMYK
0, 12, 85, 39
Luminance
0.2492

Every format

HEX#9b8917
RGBrgb(155, 137, 23)
HSLhsl(52, 74%, 35%)
CMYKcmyk(0%, 12%, 85%, 39%)
LABlab(57.0 -4.8 57.1)
LCHlch(57.0 57.3 94.8)
OKLCHoklch(0.628 0.124 99.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b8917 on white: 3.51:1
AA ✗ fail · AA-large · AAA
Aa
#9b8917 on black: 5.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green53.7%
Blue9.0%

CMYK percentages

Cyan0.0%
Magenta11.6%
Yellow85.2%
Key (black)39.2%

Color previews

#9b8917 text on a black background

contrast 5.98:1

Card sample

#9b8917 text on a white background

contrast 3.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(155, 137, 23, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(155, 137, 23, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9b8917;
background: linear-gradient(135deg, #9b8917, #559B17);

Monochromatic scale

Palettes built from #9b8917

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b8917 in the Color Lab