Skip to content

#aaab21

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

RGB
170, 171, 33
HSL
60°, 68%, 40%
CMYK
1, 0, 81, 33
Luminance
0.3778

Every format

HEX#aaab21
RGBrgb(170, 171, 33)
HSLhsl(60, 68%, 40%)
CMYKcmyk(1%, 0%, 81%, 33%)
LABlab(67.9 -15.8 64.2)
LCHlch(67.9 66.1 103.8)
OKLCHoklch(0.718 0.148 110.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aaab21 on white: 2.45:1
AA ✗ fail · AA-large · AAA
Aa
#aaab21 on black: 8.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green67.1%
Blue12.9%

CMYK percentages

Cyan0.6%
Magenta0.0%
Yellow80.7%
Key (black)32.9%

Color previews

#aaab21 text on a black background

contrast 8.56:1

Card sample

#aaab21 text on a white background

contrast 2.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aaab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aaab21 in the Color Lab