Skip to content

#b3aa21

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

RGB
179, 170, 33
HSL
56°, 69%, 42%
CMYK
0, 5, 82, 30
Luminance
0.3844

Every format

HEX#b3aa21
RGBrgb(179, 170, 33)
HSLhsl(56, 69%, 42%)
CMYKcmyk(0%, 5%, 82%, 30%)
LABlab(68.3 -11.3 64.9)
LCHlch(68.3 65.9 99.9)
OKLCHoklch(0.723 0.145 105.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b3aa21 on white: 2.42:1
AA ✗ fail · AA-large · AAA
Aa
#b3aa21 on black: 8.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.2%
Green66.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta5.0%
Yellow81.6%
Key (black)29.8%

Color previews

#b3aa21 text on a black background

contrast 8.69:1

Card sample

#b3aa21 text on a white background

contrast 2.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b3aa21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b3aa21 in the Color Lab