Skip to content

#afb660

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

RGB
175, 182, 96
HSL
65°, 37%, 55%
CMYK
4, 0, 47, 29
Luminance
0.4341

Every format

HEX#afb660
RGBrgb(175, 182, 96)
HSLhsl(65, 37%, 55%)
CMYKcmyk(4%, 0%, 47%, 29%)
LABlab(71.8 -15.1 42.7)
LCHlch(71.8 45.3 109.5)
OKLCHoklch(0.752 0.111 112.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb660 on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#afb660 on black: 9.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green71.4%
Blue37.6%

CMYK percentages

Cyan3.8%
Magenta0.0%
Yellow47.3%
Key (black)28.6%

Color previews

#afb660 text on a black background

contrast 9.68:1

Card sample

#afb660 text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb660

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb660 in the Color Lab