Skip to content

#afb162

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

RGB
175, 177, 98
HSL
62°, 34%, 54%
CMYK
1, 0, 45, 31
Luminance
0.4144

Every format

HEX#afb162
RGBrgb(175, 177, 98)
HSLhsl(62, 34%, 54%)
CMYKcmyk(1%, 0%, 45%, 31%)
LABlab(70.5 -12.3 40.0)
LCHlch(70.5 41.9 107.1)
OKLCHoklch(0.741 0.102 109.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb162 on white: 2.26:1
AA ✗ fail · AA-large · AAA
Aa
#afb162 on black: 9.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green69.4%
Blue38.4%

CMYK percentages

Cyan1.1%
Magenta0.0%
Yellow44.6%
Key (black)30.6%

Color previews

#afb162 text on a black background

contrast 9.29:1

Card sample

#afb162 text on a white background

contrast 2.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb162

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb162 in the Color Lab