Skip to content

#afaa7f

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

RGB
175, 170, 127
HSL
54°, 23%, 59%
CMYK
0, 3, 27, 31
Luminance
0.3940

Every format

HEX#afaa7f
RGBrgb(175, 170, 127)
HSLhsl(54, 23%, 59%)
CMYKcmyk(0%, 3%, 27%, 31%)
LABlab(69.0 -5.2 22.9)
LCHlch(69.0 23.4 102.7)
OKLCHoklch(0.731 0.059 102.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afaa7f on white: 2.37:1
AA ✗ fail · AA-large · AAA
Aa
#afaa7f on black: 8.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green66.7%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow27.4%
Key (black)31.4%

Color previews

#afaa7f text on a black background

contrast 8.88:1

Card sample

#afaa7f text on a white background

contrast 2.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 170, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 170, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afaa7f;
background: linear-gradient(135deg, #afaa7f, #94AF7F);

Monochromatic scale

Palettes built from #afaa7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afaa7f in the Color Lab