Skip to content

#b2aa39

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

RGB
178, 170, 57
HSL
56°, 52%, 46%
CMYK
0, 5, 68, 30
Luminance
0.3851

Every format

HEX#b2aa39
RGBrgb(178, 170, 57)
HSLhsl(56, 52%, 46%)
CMYKcmyk(0%, 5%, 68%, 30%)
LABlab(68.4 -10.7 56.7)
LCHlch(68.4 57.7 100.7)
OKLCHoklch(0.724 0.132 105.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2aa39 on white: 2.41:1
AA ✗ fail · AA-large · AAA
Aa
#b2aa39 on black: 8.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green66.7%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta4.5%
Yellow68.0%
Key (black)30.2%

Color previews

#b2aa39 text on a black background

contrast 8.70:1

Card sample

#b2aa39 text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 170, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 170, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2aa39;
background: linear-gradient(135deg, #b2aa39, #69B239);

Monochromatic scale

Palettes built from #b2aa39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2aa39 in the Color Lab