Skip to content

#b4ba2f

a balanced, vivid yellow · cool · closest name: olive

RGB
180, 186, 47
HSL
63°, 60%, 46%
CMYK
3, 0, 75, 27
Luminance
0.4503

Every format

HEX#b4ba2f
RGBrgb(180, 186, 47)
HSLhsl(63, 60%, 46%)
CMYKcmyk(3%, 0%, 75%, 27%)
LABlab(72.9 -18.5 64.8)
LCHlch(72.9 67.4 105.9)
OKLCHoklch(0.760 0.154 112.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b4ba2f on white: 2.10:1
AA ✗ fail · AA-large · AAA
Aa
#b4ba2f on black: 10.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.6%
Green72.9%
Blue18.4%

CMYK percentages

Cyan3.2%
Magenta0.0%
Yellow74.7%
Key (black)27.1%

Color previews

#b4ba2f text on a black background

contrast 10.01:1

Card sample

#b4ba2f text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(180, 186, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(180, 186, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b4ba2f;
background: linear-gradient(135deg, #b4ba2f, #57BA2F);

Monochromatic scale

Palettes built from #b4ba2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b4ba2f in the Color Lab