Skip to content

#afb261

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

RGB
175, 178, 97
HSL
62°, 35%, 54%
CMYK
2, 0, 46, 30
Luminance
0.4182

Every format

HEX#afb261
RGBrgb(175, 178, 97)
HSLhsl(62, 35%, 54%)
CMYKcmyk(2%, 0%, 46%, 30%)
LABlab(70.8 -12.9 40.8)
LCHlch(70.8 42.8 107.6)
OKLCHoklch(0.743 0.104 110.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb261 on white: 2.24:1
AA ✗ fail · AA-large · AAA
Aa
#afb261 on black: 9.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green69.8%
Blue38.0%

CMYK percentages

Cyan1.7%
Magenta0.0%
Yellow45.5%
Key (black)30.2%

Color previews

#afb261 text on a black background

contrast 9.36:1

Card sample

#afb261 text on a white background

contrast 2.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb261

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb261 in the Color Lab