Skip to content

#b4af21

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

RGB
180, 175, 33
HSL
58°, 69%, 42%
CMYK
0, 3, 82, 29
Luminance
0.4047

Every format

HEX#b4af21
RGBrgb(180, 175, 33)
HSLhsl(58, 69%, 42%)
CMYKcmyk(0%, 3%, 82%, 29%)
LABlab(69.8 -13.4 66.2)
LCHlch(69.8 67.5 101.5)
OKLCHoklch(0.735 0.150 107.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b4af21 on white: 2.31:1
AA ✗ fail · AA-large · AAA
Aa
#b4af21 on black: 9.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.6%
Green68.6%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta2.8%
Yellow81.7%
Key (black)29.4%

Color previews

#b4af21 text on a black background

contrast 9.09:1

Card sample

#b4af21 text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b4af21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b4af21 in the Color Lab