Skip to content

#afac3b

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

RGB
175, 172, 59
HSL
58°, 50%, 46%
CMYK
0, 2, 66, 31
Luminance
0.3893

Every format

HEX#afac3b
RGBrgb(175, 172, 59)
HSLhsl(58, 50%, 46%)
CMYKcmyk(0%, 2%, 66%, 31%)
LABlab(68.7 -12.9 56.1)
LCHlch(68.7 57.6 102.9)
OKLCHoklch(0.726 0.133 107.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green67.5%
Blue23.1%

CMYK percentages

Cyan0.0%
Magenta1.7%
Yellow66.3%
Key (black)31.4%

Color previews

#afac3b text on a black background

contrast 8.79:1

Card sample

#afac3b text on a white background

contrast 2.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afac3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afac3b in the Color Lab