Skip to content

#afb45f

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

RGB
175, 180, 95
HSL
64°, 36%, 54%
CMYK
3, 0, 47, 29
Luminance
0.4258

Every format

HEX#afb45f
RGBrgb(175, 180, 95)
HSLhsl(64, 36%, 54%)
CMYKcmyk(3%, 0%, 47%, 29%)
LABlab(71.3 -14.2 42.5)
LCHlch(71.3 44.8 108.5)
OKLCHoklch(0.747 0.109 111.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb45f on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#afb45f on black: 9.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green70.6%
Blue37.3%

CMYK percentages

Cyan2.8%
Magenta0.0%
Yellow47.2%
Key (black)29.4%

Color previews

#afb45f text on a black background

contrast 9.52:1

Card sample

#afb45f text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb45f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb45f in the Color Lab