Skip to content

#ba7313

a dark, electric orange · warm · closest name: Peru

RGB
186, 115, 19
HSL
35°, 82%, 40%
CMYK
0, 38, 90, 27
Luminance
0.2275

At a glance

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

Hex
#ba7313
Hue
35°
orange
Saturation
82%
electric
Lightness
40%
dark
Brightness
73%
HSV value
Perceived
53%
weighted brightness
Luminance
0.2275
WCAG relative
Temperature
Warm
4/100 cool
Color family
Orange
Tone
Electric
Best ink
Black
5.55:1
Closest name
Peru
ΔE2000 7.2
Where it sits
Hue35° of 360°
Saturation82%
Lightness40%
Temperature
Warm ← → Cool4% 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#ba7313
RGBrgb(186, 115, 19)
HSLhsl(35, 82%, 40%)
CMYKcmyk(0%, 38%, 90%, 27%)
LABlab(54.8 21.4 57.8)
LCHlch(54.8 61.7 69.7)
OKLCHoklch(0.618 0.132 66.3)
Decimal12219155
Display P3color(display-p3 0.729 0.451 0.075)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba7313 on white: 3.78:1
AA ✗ fail · AA-large · AAA
Aa
#ba7313 on black: 5.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8A7900
deuteranopia · #9B8A16
tritanopia · #CC6262

Color scale — 50 to 950

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

#FCF8F2
#F9F1E6
#F6E1C6
#F5CE99
#EFB566
#EA9D33
#DE8917
#ba7313
#945C0F
#6B440F
#432B0A
Base = 700Lightest = 50 · #FCF8F2Darkest = 950 · #432B0A
:root {
  --brand-50: #FCF8F2;
  --brand-100: #F9F1E6;
  --brand-200: #F6E1C6;
  --brand-300: #F5CE99;
  --brand-400: #EFB566;
  --brand-500: #EA9D33;
  --brand-600: #DE8917;
  --brand-700: #ba7313;
  --brand-800: #945C0F;
  --brand-900: #6B440F;
  --brand-950: #432B0A;
  --brand: #ba7313;
  --brand-ink: #000000;
}

Colors that work with #ba7313

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#EDDAC0
Hairlines and dividers
Muted text#9B794B
Captions on the surface
Accent#0F85BE
Second voice, not a rival
Dark variant#74480C
Hover, pressed, headers
Light variant#FDF4E8
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 #ba7313

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#135ABA
Analogous left#BA1F13
Analogous right#AEBA13
Split-complement 1#13AEBA
Split-complement 2#1F13BA
Triadic 1#13BA73
Triadic 2#7313BA
Tetradic#13BA1F

RGB percentages

Red72.9%
Green45.1%
Blue7.5%

CMYK percentages

Cyan0.0%
Magenta38.2%
Yellow89.8%
Key (black)27.1%

Color previews

#ba7313 text on a black background

contrast 5.55:1

Card sample

#ba7313 text on a white background

contrast 3.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 115, 19, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 115, 19, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba7313;
background: linear-gradient(135deg, #ba7313, #92BA13);

Monochromatic scale

Palettes built from #ba7313

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.

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

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

#ba7313, answered

What color is #ba7313?

#ba7313 is a dark electric orange, closest to Peru (ΔE2000 7.2). It sits at 35° on the hue wheel with 82% saturation and 40% lightness, which reads as warm.

What is the RGB value of #ba7313?

rgb(186, 115, 19) — 186 red, 115 green and 19 blue out of 255, or 72.9% / 45.1% / 7.5% by channel.

Is #ba7313 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2275 and perceived brightness is 53%, so black text on it reaches 5.55:1.

Should I use black or white text on #ba7313?

Black. It scores 5.55:1 against #ba7313, versus 3.78:1 for white — AA at any size.

What is the complementary color of #ba7313?

#135ABA sits directly opposite on the wheel. Softer options are the split-complements #13AEBA and #1F13BA, which give the same contrast with far less vibration.

What colors go well with #ba7313?

For interface work: #FAF8F4 as the surface, #EDDAC0 for borders, #9B794B for secondary text, #0F85BE as an accent and #74480C for hover and pressed states. For a palette, the analogous pair #BA1F13 and #AEBA13 stays calm, while #135ABA is the loudest partner.

What is #ba7313 in CMYK for printing?

cmyk(0%, 38%, 90%, 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 #ba7313 warm or cool?

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

Work with #ba7313 in the Color Lab