Skip to content

#ba7f3d

a balanced, vivid orange · warm · closest name: Peru

RGB
186, 127, 61
HSL
32°, 51%, 48%
CMYK
0, 32, 67, 27
Luminance
0.2595

At a glance

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

Hex
#ba7f3d
Hue
32°
orange
Saturation
51%
vivid
Lightness
48%
balanced
Brightness
73%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2595
WCAG relative
Temperature
Warm
1/100 cool
Color family
Orange
Tone
Vivid
Best ink
Black
6.19:1
Closest name
Peru
ΔE2000 4.3
Where it sits
Hue32° of 360°
Saturation51%
Lightness48%
Temperature
Warm ← → Cool1% 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#ba7f3d
RGBrgb(186, 127, 61)
HSLhsl(32, 51%, 48%)
CMYKcmyk(0%, 32%, 67%, 27%)
LABlab(58.0 16.4 44.1)
LCHlch(58.0 47.1 69.6)
OKLCHoklch(0.644 0.110 66.6)
Decimal12222269
Display P3color(display-p3 0.729 0.498 0.239)

Copy-ready code

/* CSS */
color: #ba7f3d;
background-color: #ba7f3d;
/* Tailwind (arbitrary) */
class="text-[#ba7f3d] bg-[#ba7f3d]"
/* SCSS */
$brand: #ba7f3d;
/* SwiftUI */
Color(red: 0.729, green: 0.498, blue: 0.239)
/* Android */
Color.parseColor("#ba7f3d")
/* Flutter */
Color(0xFFBA7F3D)
/* Python / OpenCV (BGR) */
(61, 127, 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 #ba7f3d · 6.19:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.39:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.19:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #ba7f3d as text scores 3.39:1 on white and 6.19:1 on black.

Accessibility — WCAG contrast

Aa
#ba7f3d on white: 3.39:1
AA ✗ fail · AA-large · AAA
Aa
#ba7f3d on black: 6.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #928336
deuteranopia · #A0913E
tritanopia · #CA7170

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba7f3d 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.

#FAF8F4
#F6F0EA
#EDDFCF
#E3C9AB
#D5AD80
#C89256
#ba7f3d
#9A6932
#7B5428
#5A3F21
#382714
Base = 600Lightest = 50 · #FAF8F4Darkest = 950 · #382714
:root {
  --brand-50: #FAF8F4;
  --brand-100: #F6F0EA;
  --brand-200: #EDDFCF;
  --brand-300: #E3C9AB;
  --brand-400: #D5AD80;
  --brand-500: #C89256;
  --brand-600: #ba7f3d;
  --brand-700: #9A6932;
  --brand-800: #7B5428;
  --brand-900: #5A3F21;
  --brand-950: #382714;
  --brand: #ba7f3d;
  --brand-ink: #000000;
}

Colors that work with #ba7f3d

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#EBD7C2
Hairlines and dividers
Muted text#9B754B
Captions on the surface
Accent#3899BF
Second voice, not a rival
Dark variant#60421F
Hover, pressed, headers
Light variant#F9F3EC
Selected rows, tints
Dark surface#241D14
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 #ba7f3d

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
  • 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#3D78BA
Analogous left#BA413D
Analogous right#B6BA3D
Split-complement 1#3DB6BA
Split-complement 2#413DBA
Triadic 1#3DBA7F
Triadic 2#7F3DBA
Tetradic#3DBA41

RGB percentages

Red72.9%
Green49.8%
Blue23.9%

CMYK percentages

Cyan0.0%
Magenta31.7%
Yellow67.2%
Key (black)27.1%

Color previews

#ba7f3d text on a black background

contrast 6.19:1

Card sample

#ba7f3d text on a white background

contrast 3.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 127, 61, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 127, 61, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba7f3d;
background: linear-gradient(135deg, #ba7f3d, #A2BA3D);

Monochromatic scale

Palettes built from #ba7f3d

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.

#ba7f3d in the real world

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

Industries
E-commerceFood deliveryLogisticsCreator tools
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#ba7f3d, answered

What color is #ba7f3d?

#ba7f3d is a balanced vivid orange, closest to Peru (ΔE2000 4.3). It sits at 32° on the hue wheel with 51% saturation and 48% lightness, which reads as warm.

What is the RGB value of #ba7f3d?

rgb(186, 127, 61) — 186 red, 127 green and 61 blue out of 255, or 72.9% / 49.8% / 23.9% by channel.

Is #ba7f3d a light or a dark color?

It is a mid-tone. Relative luminance is 0.2595 and perceived brightness is 56%, so black text on it reaches 6.19:1.

Should I use black or white text on #ba7f3d?

Black. It scores 6.19:1 against #ba7f3d, versus 3.39:1 for white — AA at any size.

What is the complementary color of #ba7f3d?

#3D78BA sits directly opposite on the wheel. Softer options are the split-complements #3DB6BA and #413DBA, which give the same contrast with far less vibration.

What colors go well with #ba7f3d?

For interface work: #FAF8F4 as the surface, #EBD7C2 for borders, #9B754B for secondary text, #3899BF as an accent and #60421F for hover and pressed states. For a palette, the analogous pair #BA413D and #B6BA3D stays calm, while #3D78BA is the loudest partner.

What is #ba7f3d in CMYK for printing?

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

Is #ba7f3d warm or cool?

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

Work with #ba7f3d in the Color Lab