Skip to content

#afac40

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

RGB
175, 172, 64
HSL
58°, 46%, 47%
CMYK
0, 2, 63, 31
Luminance
0.3899

Every format

HEX#afac40
RGBrgb(175, 172, 64)
HSLhsl(58, 46%, 47%)
CMYKcmyk(0%, 2%, 63%, 31%)
LABlab(68.7 -12.6 54.0)
LCHlch(68.7 55.5 103.1)
OKLCHoklch(0.726 0.129 107.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green67.5%
Blue25.1%

CMYK percentages

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

Color previews

#afac40 text on a black background

contrast 8.80:1

Card sample

#afac40 text on a white background

contrast 2.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afac40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afac40 in the Color Lab