Skip to content

#8aaa22

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

RGB
138, 170, 34
HSL
74°, 67%, 40%
CMYK
19, 0, 80, 33
Luminance
0.3427

Every format

HEX#8aaa22
RGBrgb(138, 170, 34)
HSLhsl(74, 67%, 40%)
CMYKcmyk(19%, 0%, 80%, 33%)
LABlab(65.2 -28.9 60.6)
LCHlch(65.2 67.1 115.5)
OKLCHoklch(0.690 0.158 122.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8aaa22 on white: 2.67:1
AA ✗ fail · AA-large · AAA
Aa
#8aaa22 on black: 7.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.1%
Green66.7%
Blue13.3%

CMYK percentages

Cyan18.8%
Magenta0.0%
Yellow80.0%
Key (black)33.3%

Color previews

#8aaa22 text on a black background

contrast 7.85:1

Card sample

#8aaa22 text on a white background

contrast 2.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(138, 170, 34, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(138, 170, 34, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8aaa22;
background: linear-gradient(135deg, #8aaa22, #2FAA22);

Monochromatic scale

Palettes built from #8aaa22

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8aaa22 in the Color Lab