Skip to content

#b2ba2f

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

RGB
178, 186, 47
HSL
64°, 60%, 46%
CMYK
4, 0, 75, 27
Luminance
0.4479

Every format

HEX#b2ba2f
RGBrgb(178, 186, 47)
HSLhsl(64, 60%, 46%)
CMYKcmyk(4%, 0%, 75%, 27%)
LABlab(72.8 -19.4 64.6)
LCHlch(72.8 67.4 106.7)
OKLCHoklch(0.758 0.154 112.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2ba2f on white: 2.11:1
AA ✗ fail · AA-large · AAA
Aa
#b2ba2f on black: 9.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green72.9%
Blue18.4%

CMYK percentages

Cyan4.3%
Magenta0.0%
Yellow74.7%
Key (black)27.1%

Color previews

#b2ba2f text on a black background

contrast 9.96:1

Card sample

#b2ba2f text on a white background

contrast 2.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b2ba2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2ba2f in the Color Lab