Skip to content

#ba9c39

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

RGB
186, 156, 57
HSL
46°, 53%, 48%
CMYK
0, 16, 69, 27
Luminance
0.3451

Every format

HEX#ba9c39
RGBrgb(186, 156, 57)
HSLhsl(46, 53%, 48%)
CMYKcmyk(0%, 16%, 69%, 27%)
LABlab(65.4 0.3 53.8)
LCHlch(65.4 53.8 89.7)
OKLCHoklch(0.702 0.121 91.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba9c39 on white: 2.66:1
AA ✗ fail · AA-large · AAA
Aa
#ba9c39 on black: 7.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green61.2%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta16.1%
Yellow69.4%
Key (black)27.1%

Color previews

#ba9c39 text on a black background

contrast 7.90:1

Card sample

#ba9c39 text on a white background

contrast 2.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 156, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 156, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba9c39;
background: linear-gradient(135deg, #ba9c39, #82BA39);

Monochromatic scale

Palettes built from #ba9c39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba9c39 in the Color Lab