Skip to content

#aaaf39

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

RGB
170, 175, 57
HSL
63°, 51%, 46%
CMYK
3, 0, 67, 31
Luminance
0.3950

Every format

HEX#aaaf39
RGBrgb(170, 175, 57)
HSLhsl(63, 51%, 46%)
CMYKcmyk(3%, 0%, 67%, 31%)
LABlab(69.1 -16.7 57.2)
LCHlch(69.1 59.6 106.3)
OKLCHoklch(0.728 0.138 111.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aaaf39 on white: 2.36:1
AA ✗ fail · AA-large · AAA
Aa
#aaaf39 on black: 8.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green68.6%
Blue22.4%

CMYK percentages

Cyan2.9%
Magenta0.0%
Yellow67.4%
Key (black)31.4%

Color previews

#aaaf39 text on a black background

contrast 8.90:1

Card sample

#aaaf39 text on a white background

contrast 2.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(170, 175, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(170, 175, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #aaaf39;
background: linear-gradient(135deg, #aaaf39, #5BAF39);

Monochromatic scale

Palettes built from #aaaf39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aaaf39 in the Color Lab