Skip to content

#9b8213

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

RGB
155, 130, 19
HSL
49°, 78%, 34%
CMYK
0, 16, 88, 39
Luminance
0.2298

Every format

HEX#9b8213
RGBrgb(155, 130, 19)
HSLhsl(49, 78%, 34%)
CMYKcmyk(0%, 16%, 88%, 39%)
LABlab(55.0 -1.1 56.5)
LCHlch(55.0 56.5 91.1)
OKLCHoklch(0.612 0.121 94.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b8213 on white: 3.75:1
AA ✗ fail · AA-large · AAA
Aa
#9b8213 on black: 5.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.8%
Green51.0%
Blue7.5%

CMYK percentages

Cyan0.0%
Magenta16.1%
Yellow87.7%
Key (black)39.2%

Color previews

#9b8213 text on a black background

contrast 5.60:1

Card sample

#9b8213 text on a white background

contrast 3.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b8213

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9b8213 in the Color Lab