Skip to content

#afb292

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

RGB
175, 178, 146
HSL
66°, 17%, 64%
CMYK
2, 0, 18, 30
Luminance
0.4303

Every format

HEX#afb292
RGBrgb(175, 178, 146)
HSLhsl(66, 17%, 64%)
CMYKcmyk(2%, 0%, 18%, 30%)
LABlab(71.6 -6.6 16.0)
LCHlch(71.6 17.4 112.4)
OKLCHoklch(0.753 0.044 111.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb292 on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#afb292 on black: 9.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green69.8%
Blue57.3%

CMYK percentages

Cyan1.7%
Magenta0.0%
Yellow18.0%
Key (black)30.2%

Color previews

#afb292 text on a black background

contrast 9.61:1

Card sample

#afb292 text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb292

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb292 in the Color Lab