Skip to content

#afaa39

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

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

Every format

HEX#afaa39
RGBrgb(175, 170, 57)
HSLhsl(58, 51%, 46%)
CMYKcmyk(0%, 3%, 67%, 31%)
LABlab(68.1 -12.0 56.3)
LCHlch(68.1 57.6 102.0)
OKLCHoklch(0.721 0.132 106.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afaa39 on white: 2.43:1
AA ✗ fail · AA-large · AAA
Aa
#afaa39 on black: 8.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green66.7%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow67.4%
Key (black)31.4%

Color previews

#afaa39 text on a black background

contrast 8.63:1

Card sample

#afaa39 text on a white background

contrast 2.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afaa39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afaa39 in the Color Lab