Skip to content

#b4aa21

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

RGB
180, 170, 33
HSL
56°, 69%, 42%
CMYK
0, 6, 82, 29
Luminance
0.3856

Every format

HEX#b4aa21
RGBrgb(180, 170, 33)
HSLhsl(56, 69%, 42%)
CMYKcmyk(0%, 6%, 82%, 29%)
LABlab(68.4 -10.8 65.0)
LCHlch(68.4 65.9 99.5)
OKLCHoklch(0.724 0.145 105.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red70.6%
Green66.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta5.6%
Yellow81.7%
Key (black)29.4%

Color previews

#b4aa21 text on a black background

contrast 8.71:1

Card sample

#b4aa21 text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(180, 170, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(180, 170, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b4aa21;
background: linear-gradient(135deg, #b4aa21, #5CB421);

Monochromatic scale

Palettes built from #b4aa21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b4aa21 in the Color Lab