Skip to content

#afac32

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

RGB
175, 172, 50
HSL
59°, 56%, 44%
CMYK
0, 2, 71, 31
Luminance
0.3885

Every format

HEX#afac32
RGBrgb(175, 172, 50)
HSLhsl(59, 56%, 44%)
CMYKcmyk(0%, 2%, 71%, 31%)
LABlab(68.6 -13.4 59.5)
LCHlch(68.6 61.0 102.7)
OKLCHoklch(0.725 0.139 108.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afac32 on white: 2.39:1
AA ✗ fail · AA-large · AAA
Aa
#afac32 on black: 8.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.5%
Blue19.6%

CMYK percentages

Cyan0.0%
Magenta1.7%
Yellow71.4%
Key (black)31.4%

Color previews

#afac32 text on a black background

contrast 8.77:1

Card sample

#afac32 text on a white background

contrast 2.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afac32

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afac32 in the Color Lab