Skip to content

#aaba21

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

RGB
170, 186, 33
HSL
66°, 70%, 43%
CMYK
9, 0, 82, 27
Luminance
0.4377

Every format

HEX#aaba21
RGBrgb(170, 186, 33)
HSLhsl(66, 70%, 43%)
CMYKcmyk(9%, 0%, 82%, 27%)
LABlab(72.1 -23.3 67.8)
LCHlch(72.1 71.7 108.9)
OKLCHoklch(0.751 0.163 116.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aaba21 on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#aaba21 on black: 9.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green72.9%
Blue12.9%

CMYK percentages

Cyan8.6%
Magenta0.0%
Yellow82.3%
Key (black)27.1%

Color previews

#aaba21 text on a black background

contrast 9.75:1

Card sample

#aaba21 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aaba21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aaba21 in the Color Lab