Skip to content

#bb9a21

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

RGB
187, 154, 33
HSL
47°, 70%, 43%
CMYK
0, 18, 82, 27
Luminance
0.3379

Every format

HEX#bb9a21
RGBrgb(187, 154, 33)
HSLhsl(47, 70%, 43%)
CMYKcmyk(0%, 18%, 82%, 27%)
LABlab(64.8 0.8 62.1)
LCHlch(64.8 62.1 89.3)
OKLCHoklch(0.697 0.134 92.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bb9a21 on white: 2.71:1
AA ✗ fail · AA-large · AAA
Aa
#bb9a21 on black: 7.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red73.3%
Green60.4%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta17.6%
Yellow82.4%
Key (black)26.7%

Color previews

#bb9a21 text on a black background

contrast 7.76:1

Card sample

#bb9a21 text on a white background

contrast 2.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(187, 154, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(187, 154, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bb9a21;
background: linear-gradient(135deg, #bb9a21, #75BB21);

Monochromatic scale

Palettes built from #bb9a21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bb9a21 in the Color Lab