Skip to content

#9aaa22

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

RGB
154, 170, 34
HSL
67°, 67%, 40%
CMYK
9, 0, 80, 33
Luminance
0.3573

Every format

HEX#9aaa22
RGBrgb(154, 170, 34)
HSLhsl(67, 67%, 40%)
CMYKcmyk(9%, 0%, 80%, 33%)
LABlab(66.3 -22.2 62.0)
LCHlch(66.3 65.9 109.7)
OKLCHoklch(0.702 0.151 116.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9aaa22 on white: 2.58:1
AA ✗ fail · AA-large · AAA
Aa
#9aaa22 on black: 8.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.4%
Green66.7%
Blue13.3%

CMYK percentages

Cyan9.4%
Magenta0.0%
Yellow80.0%
Key (black)33.3%

Color previews

#9aaa22 text on a black background

contrast 8.15:1

Card sample

#9aaa22 text on a white background

contrast 2.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9aaa22

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9aaa22 in the Color Lab