Skip to content

#b3ba4f

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

RGB
179, 186, 79
HSL
64°, 44%, 52%
CMYK
4, 0, 58, 27
Luminance
0.4527

Every format

HEX#b3ba4f
RGBrgb(179, 186, 79)
HSLhsl(64, 44%, 52%)
CMYKcmyk(4%, 0%, 58%, 27%)
LABlab(73.1 -17.0 52.3)
LCHlch(73.1 54.9 108.0)
OKLCHoklch(0.762 0.131 112.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b3ba4f on white: 2.09:1
AA ✗ fail · AA-large · AAA
Aa
#b3ba4f on black: 10.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.2%
Green72.9%
Blue31.0%

CMYK percentages

Cyan3.8%
Magenta0.0%
Yellow57.5%
Key (black)27.1%

Color previews

#b3ba4f text on a black background

contrast 10.05:1

Card sample

#b3ba4f text on a white background

contrast 2.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(179, 186, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(179, 186, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b3ba4f;
background: linear-gradient(135deg, #b3ba4f, #6CBA4F);

Monochromatic scale

Palettes built from #b3ba4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b3ba4f in the Color Lab