Skip to content

#afb280

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

RGB
175, 178, 128
HSL
64°, 25%, 60%
CMYK
2, 0, 28, 30
Luminance
0.4251

Every format

HEX#afb280
RGBrgb(175, 178, 128)
HSLhsl(64, 25%, 60%)
CMYKcmyk(2%, 0%, 28%, 30%)
LABlab(71.2 -9.3 25.3)
LCHlch(71.2 26.9 110.1)
OKLCHoklch(0.749 0.068 110.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb280 on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#afb280 on black: 9.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green69.8%
Blue50.2%

CMYK percentages

Cyan1.7%
Magenta0.0%
Yellow28.1%
Key (black)30.2%

Color previews

#afb280 text on a black background

contrast 9.50:1

Card sample

#afb280 text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb280

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb280 in the Color Lab