Skip to content

#8e9d2f

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

RGB
142, 157, 47
HSL
68°, 54%, 40%
CMYK
10, 0, 70, 38
Luminance
0.3007

Every format

HEX#8e9d2f
RGBrgb(142, 157, 47)
HSLhsl(68, 54%, 40%)
CMYKcmyk(10%, 0%, 70%, 38%)
LABlab(61.7 -20.2 53.0)
LCHlch(61.7 56.7 110.8)
OKLCHoklch(0.663 0.133 116.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8e9d2f on white: 2.99:1
AA ✗ fail · AA-large · AAA
Aa
#8e9d2f on black: 7.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red55.7%
Green61.6%
Blue18.4%

CMYK percentages

Cyan9.6%
Magenta0.0%
Yellow70.1%
Key (black)38.4%

Color previews

#8e9d2f text on a black background

contrast 7.01:1

Card sample

#8e9d2f text on a white background

contrast 2.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(142, 157, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(142, 157, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8e9d2f;
background: linear-gradient(135deg, #8e9d2f, #459D2F);

Monochromatic scale

Palettes built from #8e9d2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8e9d2f in the Color Lab