Skip to content

#b2ba4f

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

RGB
178, 186, 79
HSL
65°, 44%, 52%
CMYK
4, 0, 58, 27
Luminance
0.4515

Every format

HEX#b2ba4f
RGBrgb(178, 186, 79)
HSLhsl(65, 44%, 52%)
CMYKcmyk(4%, 0%, 58%, 27%)
LABlab(73.0 -17.4 52.1)
LCHlch(73.0 55.0 108.5)
OKLCHoklch(0.761 0.131 113.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red69.8%
Green72.9%
Blue31.0%

CMYK percentages

Cyan4.3%
Magenta0.0%
Yellow57.5%
Key (black)27.1%

Color previews

#b2ba4f text on a black background

contrast 10.03:1

Card sample

#b2ba4f text on a white background

contrast 2.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b2ba4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2ba4f in the Color Lab