Skip to content

#afb657

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

RGB
175, 182, 87
HSL
64°, 39%, 53%
CMYK
4, 0, 52, 29
Luminance
0.4326

Every format

HEX#afb657
RGBrgb(175, 182, 87)
HSLhsl(64, 39%, 53%)
CMYKcmyk(4%, 0%, 52%, 29%)
LABlab(71.7 -16.0 46.9)
LCHlch(71.7 49.6 108.8)
OKLCHoklch(0.751 0.120 112.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb657 on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#afb657 on black: 9.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green71.4%
Blue34.1%

CMYK percentages

Cyan3.8%
Magenta0.0%
Yellow52.2%
Key (black)28.6%

Color previews

#afb657 text on a black background

contrast 9.65:1

Card sample

#afb657 text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 182, 87, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 182, 87, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb657;
background: linear-gradient(135deg, #afb657, #70B657);

Monochromatic scale

Palettes built from #afb657

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb657 in the Color Lab