Skip to content

#ba8d2d

a balanced, vivid yellow · warm · closest name: Dark Goldenrod

RGB
186, 141, 45
HSL
41°, 61%, 45%
CMYK
0, 24, 76, 27
Luminance
0.2968

At a glance

Every number on this page in one read: what #ba8d2d is made of, how bright it looks, and which way it leans.

Hex
#ba8d2d
Hue
41°
yellow
Saturation
61%
vivid
Lightness
45%
balanced
Brightness
73%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2968
WCAG relative
Temperature
Warm
9/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
6.94:1
Closest name
Dark Goldenrod
ΔE2000 3
Where it sits
Hue41° of 360°
Saturation61%
Lightness45%
Temperature
Warm ← → Cool9% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#ba8d2d
RGBrgb(186, 141, 45)
HSLhsl(41, 61%, 45%)
CMYKcmyk(0%, 24%, 76%, 27%)
LABlab(61.4 7.8 54.8)
LCHlch(61.4 55.3 81.8)
OKLCHoklch(0.670 0.122 82.2)
Decimal12225837
Display P3color(display-p3 0.729 0.553 0.176)

Copy-ready code

/* CSS */
color: #ba8d2d;
background-color: #ba8d2d;
/* Tailwind (arbitrary) */
class="text-[#ba8d2d] bg-[#ba8d2d]"
/* SCSS */
$brand: #ba8d2d;
/* SwiftUI */
Color(red: 0.729, green: 0.553, blue: 0.176)
/* Android */
Color.parseColor("#ba8d2d")
/* Flutter */
Color(0xFFBA8D2D)
/* Python / OpenCV (BGR) */
(45, 141, 186)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #ba8d2d · 6.94:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.03:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.94:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #ba8d2d as text scores 3.03:1 on white and 6.94:1 on black.

Accessibility — WCAG contrast

Aa
#ba8d2d on white: 3.03:1
AA ✗ fail · AA-large · AAA
Aa
#ba8d2d on black: 6.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A08D1E
deuteranopia · #AA9931
tritanopia · #CA7F7A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba8d2d is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBF9F4
#F7F2E8
#F0E4CC
#E9D3A5
#DEBE78
#D3A84A
#ba8d2d
#A47D28
#836420
#604A1B
#3C2E11
Base = 600Lightest = 50 · #FBF9F4Darkest = 950 · #3C2E11
:root {
  --brand-50: #FBF9F4;
  --brand-100: #F7F2E8;
  --brand-200: #F0E4CC;
  --brand-300: #E9D3A5;
  --brand-400: #DEBE78;
  --brand-500: #D3A84A;
  --brand-600: #ba8d2d;
  --brand-700: #A47D28;
  --brand-800: #836420;
  --brand-900: #604A1B;
  --brand-950: #3C2E11;
  --brand: #ba8d2d;
  --brand-ink: #000000;
}

Colors that work with #ba8d2d

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF8F4
Tinted page background
Border#EDDEC0
Hairlines and dividers
Muted text#9B814B
Captions on the surface
Accent#287EBF
Second voice, not a rival
Dark variant#674E19
Hover, pressed, headers
Light variant#FAF5EA
Selected rows, tints
Dark surface#241F14
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #ba8d2d

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#2D5ABA
Analogous left#BA472D
Analogous right#A0BA2D
Split-complement 1#2DA0BA
Split-complement 2#472DBA
Triadic 1#2DBA8D
Triadic 2#8D2DBA
Tetradic#2DBA47

RGB percentages

Red72.9%
Green55.3%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta24.2%
Yellow75.8%
Key (black)27.1%

Color previews

#ba8d2d text on a black background

contrast 6.94:1

Card sample

#ba8d2d text on a white background

contrast 3.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 141, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 141, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba8d2d;
background: linear-gradient(135deg, #ba8d2d, #89BA2D);

Monochromatic scale

Palettes built from #ba8d2d

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#ba8d2d in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#ba8d2d, answered

What color is #ba8d2d?

#ba8d2d is a balanced vivid yellow, closest to Dark Goldenrod (ΔE2000 3). It sits at 41° on the hue wheel with 61% saturation and 45% lightness, which reads as warm.

What is the RGB value of #ba8d2d?

rgb(186, 141, 45) — 186 red, 141 green and 45 blue out of 255, or 72.9% / 55.3% / 17.6% by channel.

Is #ba8d2d a light or a dark color?

It is a mid-tone. Relative luminance is 0.2968 and perceived brightness is 58%, so black text on it reaches 6.94:1.

Should I use black or white text on #ba8d2d?

Black. It scores 6.94:1 against #ba8d2d, versus 3.03:1 for white — AA at any size.

What is the complementary color of #ba8d2d?

#2D5ABA sits directly opposite on the wheel. Softer options are the split-complements #2DA0BA and #472DBA, which give the same contrast with far less vibration.

What colors go well with #ba8d2d?

For interface work: #FAF8F4 as the surface, #EDDEC0 for borders, #9B814B for secondary text, #287EBF as an accent and #674E19 for hover and pressed states. For a palette, the analogous pair #BA472D and #A0BA2D stays calm, while #2D5ABA is the loudest partner.

What is #ba8d2d in CMYK for printing?

cmyk(0%, 24%, 76%, 27%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #ba8d2d warm or cool?

Warm — it scores 9 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA772D; nudged cooler, #B5BC2B.

Work with #ba8d2d in the Color Lab