Skip to content

#ba982f

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

RGB
186, 152, 47
HSL
45°, 60%, 46%
CMYK
0, 18, 75, 27
Luminance
0.3310

Every format

HEX#ba982f
RGBrgb(186, 152, 47)
HSLhsl(45, 60%, 46%)
CMYKcmyk(0%, 18%, 75%, 27%)
LABlab(64.2 1.9 56.8)
LCHlch(64.2 56.8 88.1)
OKLCHoklch(0.693 0.125 90.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba982f on white: 2.76:1
AA ✗ fail · AA-large · AAA
Aa
#ba982f on black: 7.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green59.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta18.3%
Yellow74.7%
Key (black)27.1%

Color previews

#ba982f text on a black background

contrast 7.62:1

Card sample

#ba982f text on a white background

contrast 2.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 152, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 152, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba982f;
background: linear-gradient(135deg, #ba982f, #7FBA2F);

Monochromatic scale

Palettes built from #ba982f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba982f in the Color Lab