Skip to content

#afab79

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

RGB
175, 171, 121
HSL
56°, 25%, 58%
CMYK
0, 2, 31, 31
Luminance
0.3962

Every format

HEX#afab79
RGBrgb(175, 171, 121)
HSLhsl(56, 25%, 58%)
CMYKcmyk(0%, 2%, 31%, 31%)
LABlab(69.2 -6.5 26.3)
LCHlch(69.2 27.1 103.9)
OKLCHoklch(0.732 0.068 104.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afab79 on white: 2.35:1
AA ✗ fail · AA-large · AAA
Aa
#afab79 on black: 8.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

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

Color previews

#afab79 text on a black background

contrast 8.92:1

Card sample

#afab79 text on a white background

contrast 2.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab79

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab79 in the Color Lab