Skip to content

#afac78

a balanced, soft yellow · cool · closest name: tan

RGB
175, 172, 120
HSL
57°, 26%, 58%
CMYK
0, 2, 31, 31
Luminance
0.3998

Every format

HEX#afac78
RGBrgb(175, 172, 120)
HSLhsl(57, 26%, 58%)
CMYKcmyk(0%, 2%, 31%, 31%)
LABlab(69.5 -7.2 27.2)
LCHlch(69.5 28.1 104.7)
OKLCHoklch(0.734 0.070 105.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afac78 on white: 2.33:1
AA ✗ fail · AA-large · AAA
Aa
#afac78 on black: 9.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.5%
Blue47.1%

CMYK percentages

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

Color previews

#afac78 text on a black background

contrast 9.00:1

Card sample

#afac78 text on a white background

contrast 2.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afac78

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afac78 in the Color Lab