Skip to content

#b2ba2d

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

RGB
178, 186, 45
HSL
63°, 61%, 45%
CMYK
4, 0, 76, 27
Luminance
0.4477

Every format

HEX#b2ba2d
RGBrgb(178, 186, 45)
HSLhsl(63, 61%, 45%)
CMYKcmyk(4%, 0%, 76%, 27%)
LABlab(72.7 -19.4 65.2)
LCHlch(72.7 68.0 106.6)
OKLCHoklch(0.758 0.155 112.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red69.8%
Green72.9%
Blue17.6%

CMYK percentages

Cyan4.3%
Magenta0.0%
Yellow75.8%
Key (black)27.1%

Color previews

#b2ba2d text on a black background

contrast 9.95:1

Card sample

#b2ba2d text on a white background

contrast 2.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b2ba2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2ba2d in the Color Lab