Skip to content

#ba9921

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

RGB
186, 153, 33
HSL
47°, 70%, 43%
CMYK
0, 18, 82, 27
Luminance
0.3333

Every format

HEX#ba9921
RGBrgb(186, 153, 33)
HSLhsl(47, 70%, 43%)
CMYKcmyk(0%, 18%, 82%, 27%)
LABlab(64.4 0.8 61.8)
LCHlch(64.4 61.8 89.2)
OKLCHoklch(0.694 0.133 92.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba9921 on white: 2.74:1
AA ✗ fail · AA-large · AAA
Aa
#ba9921 on black: 7.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green60.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta17.7%
Yellow82.3%
Key (black)27.1%

Color previews

#ba9921 text on a black background

contrast 7.67:1

Card sample

#ba9921 text on a white background

contrast 2.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba9921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba9921 in the Color Lab