Skip to content

#9b8c21

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

RGB
155, 140, 33
HSL
53°, 65%, 37%
CMYK
0, 10, 79, 39
Luminance
0.2583

Every format

HEX#9b8c21
RGBrgb(155, 140, 33)
HSLhsl(53, 65%, 37%)
CMYKcmyk(0%, 10%, 79%, 39%)
LABlab(57.9 -6.1 54.8)
LCHlch(57.9 55.1 96.4)
OKLCHoklch(0.635 0.122 100.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b8c21 on white: 3.41:1
AA ✗ fail · AA-large · AAA
Aa
#9b8c21 on black: 6.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green54.9%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta9.7%
Yellow78.7%
Key (black)39.2%

Color previews

#9b8c21 text on a black background

contrast 6.17:1

Card sample

#9b8c21 text on a white background

contrast 3.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(155, 140, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(155, 140, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9b8c21;
background: linear-gradient(135deg, #9b8c21, #599B21);

Monochromatic scale

Palettes built from #9b8c21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b8c21 in the Color Lab