Skip to content

#9d9921

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

RGB
157, 153, 33
HSL
58°, 65%, 37%
CMYK
0, 3, 79, 38
Luminance
0.3006

Every format

HEX#9d9921
RGBrgb(157, 153, 33)
HSLhsl(58, 65%, 37%)
CMYKcmyk(0%, 3%, 79%, 38%)
LABlab(61.7 -12.2 58.3)
LCHlch(61.7 59.6 101.8)
OKLCHoklch(0.666 0.133 107.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9d9921 on white: 2.99:1
AA ✗ fail · AA-large · AAA
Aa
#9d9921 on black: 7.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.6%
Green60.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta2.5%
Yellow79.0%
Key (black)38.4%

Color previews

#9d9921 text on a black background

contrast 7.01:1

Card sample

#9d9921 text on a white background

contrast 2.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(157, 153, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(157, 153, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9d9921;
background: linear-gradient(135deg, #9d9921, #4E9D21);

Monochromatic scale

Palettes built from #9d9921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9d9921 in the Color Lab