Skip to content

#9b8c13

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

RGB
155, 140, 19
HSL
53°, 78%, 34%
CMYK
0, 10, 88, 39
Luminance
0.2577

Every format

HEX#9b8c13
RGBrgb(155, 140, 19)
HSLhsl(53, 78%, 34%)
CMYKcmyk(0%, 10%, 88%, 39%)
LABlab(57.8 -6.5 58.8)
LCHlch(57.8 59.1 96.4)
OKLCHoklch(0.634 0.128 101.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red60.8%
Green54.9%
Blue7.5%

CMYK percentages

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

Color previews

#9b8c13 text on a black background

contrast 6.15:1

Card sample

#9b8c13 text on a white background

contrast 3.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b8c13

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b8c13 in the Color Lab