Skip to content

#afba60

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

RGB
175, 186, 96
HSL
67°, 40%, 55%
CMYK
6, 0, 48, 27
Luminance
0.4508

Every format

HEX#afba60
RGBrgb(175, 186, 96)
HSLhsl(67, 40%, 55%)
CMYKcmyk(6%, 0%, 48%, 27%)
LABlab(72.9 -17.1 44.0)
LCHlch(72.9 47.2 111.3)
OKLCHoklch(0.761 0.116 114.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afba60 on white: 2.10:1
AA ✗ fail · AA-large · AAA
Aa
#afba60 on black: 10.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green72.9%
Blue37.6%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow48.4%
Key (black)27.1%

Color previews

#afba60 text on a black background

contrast 10.02:1

Card sample

#afba60 text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afba60

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afba60 in the Color Lab