Skip to content

#9dab48

a balanced, soft yellow · cool · closest name: olivedrab

RGB
157, 171, 72
HSL
69°, 41%, 48%
CMYK
8, 0, 58, 33
Luminance
0.3676

Every format

HEX#9dab48
RGBrgb(157, 171, 72)
HSLhsl(69, 41%, 48%)
CMYKcmyk(8%, 0%, 58%, 33%)
LABlab(67.1 -19.1 48.3)
LCHlch(67.1 51.9 111.6)
OKLCHoklch(0.710 0.125 116.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9dab48 on white: 2.51:1
AA ✗ fail · AA-large · AAA
Aa
#9dab48 on black: 8.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.6%
Green67.1%
Blue28.2%

CMYK percentages

Cyan8.2%
Magenta0.0%
Yellow57.9%
Key (black)32.9%

Color previews

#9dab48 text on a black background

contrast 8.35:1

Card sample

#9dab48 text on a white background

contrast 2.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(157, 171, 72, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(157, 171, 72, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9dab48;
background: linear-gradient(135deg, #9dab48, #5BAB48);

Monochromatic scale

Palettes built from #9dab48

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9dab48 in the Color Lab