Skip to content

#ab9a21

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

RGB
171, 154, 33
HSL
53°, 68%, 40%
CMYK
0, 10, 81, 33
Luminance
0.3188

Every format

HEX#ab9a21
RGBrgb(171, 154, 33)
HSLhsl(53, 68%, 40%)
CMYKcmyk(0%, 10%, 81%, 33%)
LABlab(63.2 -6.4 60.2)
LCHlch(63.2 60.5 96.1)
OKLCHoklch(0.681 0.133 100.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab9a21 on white: 2.85:1
AA ✗ fail · AA-large · AAA
Aa
#ab9a21 on black: 7.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green60.4%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta9.9%
Yellow80.7%
Key (black)32.9%

Color previews

#ab9a21 text on a black background

contrast 7.38:1

Card sample

#ab9a21 text on a white background

contrast 2.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab9a21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab9a21 in the Color Lab