Skip to content

#b4af5f

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

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

Every format

HEX#b4af5f
RGBrgb(180, 175, 95)
HSLhsl(57, 36%, 54%)
CMYKcmyk(0%, 3%, 47%, 29%)
LABlab(70.3 -9.5 41.4)
LCHlch(70.3 42.5 103.0)
OKLCHoklch(0.741 0.103 105.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b4af5f on white: 2.27:1
AA ✗ fail · AA-large · AAA
Aa
#b4af5f on black: 9.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.6%
Green68.6%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta2.8%
Yellow47.2%
Key (black)29.4%

Color previews

#b4af5f text on a black background

contrast 9.24:1

Card sample

#b4af5f text on a white background

contrast 2.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b4af5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b4af5f in the Color Lab