Skip to content

#9aab21

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

RGB
154, 171, 33
HSL
67°, 68%, 40%
CMYK
10, 0, 81, 33
Luminance
0.3611

Every format

HEX#9aab21
RGBrgb(154, 171, 33)
HSLhsl(67, 68%, 40%)
CMYKcmyk(10%, 0%, 81%, 33%)
LABlab(66.6 -22.7 62.6)
LCHlch(66.6 66.6 109.9)
OKLCHoklch(0.704 0.153 116.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9aab21 on white: 2.55:1
AA ✗ fail · AA-large · AAA
Aa
#9aab21 on black: 8.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red60.4%
Green67.1%
Blue12.9%

CMYK percentages

Cyan9.9%
Magenta0.0%
Yellow80.7%
Key (black)32.9%

Color previews

#9aab21 text on a black background

contrast 8.22:1

Card sample

#9aab21 text on a white background

contrast 2.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9aab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9aab21 in the Color Lab