Skip to content

#8f9a21

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

RGB
143, 154, 33
HSL
66°, 65%, 37%
CMYK
7, 0, 79, 40
Luminance
0.2906

Every format

HEX#8f9a21
RGBrgb(143, 154, 33)
HSLhsl(66, 65%, 37%)
CMYKcmyk(7%, 0%, 79%, 40%)
LABlab(60.8 -18.9 57.1)
LCHlch(60.8 60.1 108.3)
OKLCHoklch(0.656 0.138 114.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8f9a21 on white: 3.08:1
AA ✗ fail · AA-large · AAA
Aa
#8f9a21 on black: 6.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red56.1%
Green60.4%
Blue12.9%

CMYK percentages

Cyan7.1%
Magenta0.0%
Yellow78.6%
Key (black)39.6%

Color previews

#8f9a21 text on a black background

contrast 6.81:1

Card sample

#8f9a21 text on a white background

contrast 3.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(143, 154, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 154, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f9a21;
background: linear-gradient(135deg, #8f9a21, #3E9A21);

Monochromatic scale

Palettes built from #8f9a21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8f9a21 in the Color Lab