Skip to content

#afac39

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

RGB
175, 172, 57
HSL
59°, 51%, 46%
CMYK
0, 2, 67, 31
Luminance
0.3891

Every format

HEX#afac39
RGBrgb(175, 172, 57)
HSLhsl(59, 51%, 46%)
CMYKcmyk(0%, 2%, 67%, 31%)
LABlab(68.7 -13.0 56.9)
LCHlch(68.7 58.4 102.9)
OKLCHoklch(0.726 0.134 107.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green67.5%
Blue22.4%

CMYK percentages

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

Color previews

#afac39 text on a black background

contrast 8.78:1

Card sample

#afac39 text on a white background

contrast 2.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afac39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afac39 in the Color Lab