Skip to content

#afab5d

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

RGB
175, 171, 93
HSL
57°, 34%, 53%
CMYK
0, 2, 47, 31
Luminance
0.3903

Every format

HEX#afab5d
RGBrgb(175, 171, 93)
HSLhsl(57, 34%, 53%)
CMYKcmyk(0%, 2%, 47%, 31%)
LABlab(68.8 -9.7 40.4)
LCHlch(68.8 41.6 103.5)
OKLCHoklch(0.727 0.101 106.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afab5d on white: 2.38:1
AA ✗ fail · AA-large · AAA
Aa
#afab5d on black: 8.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.1%
Blue36.5%

CMYK percentages

Cyan0.0%
Magenta2.3%
Yellow46.9%
Key (black)31.4%

Color previews

#afab5d text on a black background

contrast 8.81:1

Card sample

#afab5d text on a white background

contrast 2.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 171, 93, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 171, 93, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afab5d;
background: linear-gradient(135deg, #afab5d, #7CAF5D);

Monochromatic scale

Palettes built from #afab5d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab5d in the Color Lab