Skip to content

#ba970d

a dark, electric yellow · warm · closest name: Dark Goldenrod

RGB
186, 151, 13
HSL
48°, 87%, 39%
CMYK
0, 19, 93, 27
Luminance
0.3260

At a glance

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

Hex
#ba970d
Hue
48°
yellow
Saturation
87%
electric
Lightness
39%
dark
Brightness
73%
HSV value
Perceived
60%
weighted brightness
Luminance
0.3260
WCAG relative
Temperature
Warm
15/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
7.52:1
Closest name
Dark Goldenrod
ΔE2000 6.8
Where it sits
Hue48° of 360°
Saturation87%
Lightness39%
Temperature
Warm ← → Cool15% 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#ba970d
RGBrgb(186, 151, 13)
HSLhsl(48, 87%, 39%)
CMYKcmyk(0%, 19%, 93%, 27%)
LABlab(63.8 1.5 65.9)
LCHlch(63.8 66.0 88.7)
OKLCHoklch(0.689 0.139 91.8)
Decimal12228365
Display P3color(display-p3 0.729 0.592 0.051)

Copy-ready code

/* CSS */
color: #ba970d;
background-color: #ba970d;
/* Tailwind (arbitrary) */
class="text-[#ba970d] bg-[#ba970d]"
/* SCSS */
$brand: #ba970d;
/* SwiftUI */
Color(red: 0.729, green: 0.592, blue: 0.051)
/* Android */
Color.parseColor("#ba970d")
/* Flutter */
Color(0xFFBA970D)
/* Python / OpenCV (BGR) */
(13, 151, 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 #ba970d · 7.52:1
Use #000000AAA at every size.
Aa
White text · 2.79:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.52:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #ba970d as text scores 2.79:1 on white and 7.52:1 on black.

Accessibility — WCAG contrast

Aa
#ba970d on white: 2.79:1
AA ✗ fail · AA-large · AAA
Aa
#ba970d on black: 7.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #AA9500
deuteranopia · #B29F1C
tritanopia · #CA8980

Color scale — 50 to 950

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

#FDFAF2
#FAF6E5
#F7EDC4
#F8E496
#F4D662
#F0C92D
#E5BA10
#ba970d
#997C0B
#6E5A0C
#453808
Base = 700Lightest = 50 · #FDFAF2Darkest = 950 · #453808
:root {
  --brand-50: #FDFAF2;
  --brand-100: #FAF6E5;
  --brand-200: #F7EDC4;
  --brand-300: #F8E496;
  --brand-400: #F4D662;
  --brand-500: #F0C92D;
  --brand-600: #E5BA10;
  --brand-700: #ba970d;
  --brand-800: #997C0B;
  --brand-900: #6E5A0C;
  --brand-950: #453808;
  --brand: #ba970d;
  --brand-ink: #000000;
}

Colors that work with #ba970d

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#FAF9F4
Tinted page background
Border#EDE4C0
Hairlines and dividers
Muted text#9B8B4B
Captions on the surface
Accent#095BBE
Second voice, not a rival
Dark variant#776108
Hover, pressed, headers
Light variant#FDF9E7
Selected rows, tints
Dark surface#242114
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 #ba970d

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

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#0D30BA
Analogous left#BA410D
Analogous right#86BA0D
Split-complement 1#0D86BA
Split-complement 2#410DBA
Triadic 1#0DBA97
Triadic 2#970DBA
Tetradic#0DBA41

RGB percentages

Red72.9%
Green59.2%
Blue5.1%

CMYK percentages

Cyan0.0%
Magenta18.8%
Yellow93.0%
Key (black)27.1%

Color previews

#ba970d text on a black background

contrast 7.52:1

Card sample

#ba970d text on a white background

contrast 2.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 151, 13, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 151, 13, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba970d;
background: linear-gradient(135deg, #ba970d, #69BA0D);

Monochromatic scale

Palettes built from #ba970d

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.

#ba970d 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ba970d, answered

What color is #ba970d?

#ba970d is a dark electric yellow, closest to Dark Goldenrod (ΔE2000 6.8). It sits at 48° on the hue wheel with 87% saturation and 39% lightness, which reads as warm.

What is the RGB value of #ba970d?

rgb(186, 151, 13) — 186 red, 151 green and 13 blue out of 255, or 72.9% / 59.2% / 5.1% by channel.

Is #ba970d a light or a dark color?

It is a mid-tone. Relative luminance is 0.3260 and perceived brightness is 60%, so black text on it reaches 7.52:1.

Should I use black or white text on #ba970d?

Black. It scores 7.52:1 against #ba970d, versus 2.79:1 for white — AAA at any size.

What is the complementary color of #ba970d?

#0D30BA sits directly opposite on the wheel. Softer options are the split-complements #0D86BA and #410DBA, which give the same contrast with far less vibration.

What colors go well with #ba970d?

For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8B4B for secondary text, #095BBE as an accent and #776108 for hover and pressed states. For a palette, the analogous pair #BA410D and #86BA0D stays calm, while #0D30BA is the loudest partner.

What is #ba970d in CMYK for printing?

cmyk(0%, 19%, 93%, 27%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #ba970d warm or cool?

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

Work with #ba970d in the Color Lab