Skip to content

#8ba40c

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

RGB
139, 164, 12
HSL
70°, 86%, 35%
CMYK
15, 0, 93, 36
Luminance
0.3207

Every format

HEX#8ba40c
RGBrgb(139, 164, 12)
HSLhsl(70, 86%, 35%)
CMYKcmyk(15%, 0%, 93%, 36%)
LABlab(63.4 -26.3 64.0)
LCHlch(63.4 69.2 112.3)
OKLCHoklch(0.676 0.158 120.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8ba40c on white: 2.83:1
AA ✗ fail · AA-large · AAA
Aa
#8ba40c on black: 7.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.5%
Green64.3%
Blue4.7%

CMYK percentages

Cyan15.2%
Magenta0.0%
Yellow92.7%
Key (black)35.7%

Color previews

#8ba40c text on a black background

contrast 7.41:1

Card sample

#8ba40c text on a white background

contrast 2.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(139, 164, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(139, 164, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8ba40c;
background: linear-gradient(135deg, #8ba40c, #26A40C);

Monochromatic scale

Palettes built from #8ba40c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8ba40c in the Color Lab