Skip to content

#bfaa21

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

RGB
191, 170, 33
HSL
52°, 71%, 44%
CMYK
0, 11, 83, 25
Luminance
0.3994

Every format

HEX#bfaa21
RGBrgb(191, 170, 33)
HSLhsl(52, 71%, 44%)
CMYKcmyk(0%, 11%, 83%, 25%)
LABlab(69.4 -6.0 66.2)
LCHlch(69.4 66.5 95.2)
OKLCHoklch(0.734 0.144 99.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bfaa21 on white: 2.34:1
AA ✗ fail · AA-large · AAA
Aa
#bfaa21 on black: 8.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red74.9%
Green66.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta11.0%
Yellow82.7%
Key (black)25.1%

Color previews

#bfaa21 text on a black background

contrast 8.99:1

Card sample

#bfaa21 text on a white background

contrast 2.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bfaa21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bfaa21 in the Color Lab