Skip to content

#8f892f

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

RGB
143, 137, 47
HSL
56°, 51%, 37%
CMYK
0, 4, 67, 44
Luminance
0.2394

Every format

HEX#8f892f
RGBrgb(143, 137, 47)
HSLhsl(56, 51%, 37%)
CMYKcmyk(0%, 4%, 67%, 44%)
LABlab(56.0 -9.2 47.2)
LCHlch(56.0 48.1 101.0)
OKLCHoklch(0.618 0.110 105.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8f892f on white: 3.63:1
AA ✗ fail · AA-large · AAA
Aa
#8f892f on black: 5.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red56.1%
Green53.7%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta4.2%
Yellow67.1%
Key (black)43.9%

Color previews

#8f892f text on a black background

contrast 5.79:1

Card sample

#8f892f text on a white background

contrast 3.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8f892f;
Background color
Panel with #8f892f background
background-color: #8f892f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(143, 137, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 137, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f892f;
background: linear-gradient(135deg, #8f892f, #558F2F);

Monochromatic scale

Palettes built from #8f892f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8f892f in the Color Lab