Skip to content

#b4af5e

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

RGB
180, 175, 94
HSL
57°, 36%, 54%
CMYK
0, 3, 48, 29
Luminance
0.4117

Every format

HEX#b4af5e
RGBrgb(180, 175, 94)
HSLhsl(57, 36%, 54%)
CMYKcmyk(0%, 3%, 48%, 29%)
LABlab(70.3 -9.6 41.9)
LCHlch(70.3 43.0 102.9)
OKLCHoklch(0.741 0.104 105.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red70.6%
Green68.6%
Blue36.9%

CMYK percentages

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

Color previews

#b4af5e text on a black background

contrast 9.23:1

Card sample

#b4af5e text on a white background

contrast 2.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b4af5e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b4af5e in the Color Lab