Skip to content

#ba072c

a dark, electric red · warm · closest name: Brown

RGB
186, 7, 44
HSL
348°, 93%, 38%
CMYK
0, 96, 76, 27
Luminance
0.1077

At a glance

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

Hex
#ba072c
Hue
348°
red
Saturation
93%
electric
Lightness
38%
dark
Brightness
73%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1077
WCAG relative
Temperature
Warm
24/100 cool
Color family
Red
Tone
Electric
Best ink
White
6.66:1
Closest name
Brown
ΔE2000 4.5
Where it sits
Hue348° of 360°
Saturation93%
Lightness38%
Temperature
Warm ← → Cool24% 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#ba072c
RGBrgb(186, 7, 44)
HSLhsl(348, 93%, 38%)
CMYKcmyk(0%, 96%, 76%, 27%)
LABlab(39.2 63.3 32.4)
LCHlch(39.2 71.1 27.1)
OKLCHoklch(0.501 0.199 21.3)
Decimal12191532
Display P3color(display-p3 0.729 0.027 0.173)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba072c on white: 6.66:1
AA ✓ pass · AA-large · AAA
Aa
#ba072c on black: 3.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4C462B
deuteranopia · #756925
tritanopia · #CD001C

Color scale — 50 to 950

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

#FDF2F4
#FBE4E9
#F9C2CE
#FB93A8
#F95D7D
#F72752
#EC0938
#ba072c
#9D0625
#71091F
#470613
Base = 700Lightest = 50 · #FDF2F4Darkest = 950 · #470613
:root {
  --brand-50: #FDF2F4;
  --brand-100: #FBE4E9;
  --brand-200: #F9C2CE;
  --brand-300: #FB93A8;
  --brand-400: #F95D7D;
  --brand-500: #F72752;
  --brand-600: #EC0938;
  --brand-700: #ba072c;
  --brand-800: #9D0625;
  --brand-900: #71091F;
  --brand-950: #470613;
  --brand: #ba072c;
  --brand-ink: #ffffff;
}

Colors that work with #ba072c

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

Text on it#ffffff
White wins here
Surface#FAF4F6
Tinted page background
Border#EDC0C9
Hairlines and dividers
Muted text#9B4B5B
Captions on the surface
Accent#03C96E
Second voice, not a rival
Dark variant#7B051D
Hover, pressed, headers
Light variant#FEE6EB
Selected rows, tints
Dark surface#241417
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 #ba072c

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

Works well for
  • Body text and links on white
  • 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
  • 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#07BA95
Analogous left#BA0785
Analogous right#BA3B07
Split-complement 1#07BA3B
Split-complement 2#0785BA
Triadic 1#2CBA07
Triadic 2#072CBA
Tetradic#85BA07

RGB percentages

Red72.9%
Green2.7%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta96.2%
Yellow76.3%
Key (black)27.1%

Color previews

#ba072c text on a black background

contrast 3.15:1

Card sample

#ba072c text on a white background

contrast 6.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba072c

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.

#ba072c in the real world

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

Industries
Food and drinkEntertainmentRetailSport
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#ba072c, answered

What color is #ba072c?

#ba072c is a dark electric red, closest to Brown (ΔE2000 4.5). It sits at 348° on the hue wheel with 93% saturation and 38% lightness, which reads as warm.

What is the RGB value of #ba072c?

rgb(186, 7, 44) — 186 red, 7 green and 44 blue out of 255, or 72.9% / 2.7% / 17.3% by channel.

Is #ba072c a light or a dark color?

It is a dark color. Relative luminance is 0.1077 and perceived brightness is 40%, so white text on it reaches 6.66:1.

Should I use black or white text on #ba072c?

White. It scores 6.66:1 against #ba072c, versus 3.15:1 for black — AA at any size.

What is the complementary color of #ba072c?

#07BA95 sits directly opposite on the wheel. Softer options are the split-complements #07BA3B and #0785BA, which give the same contrast with far less vibration.

What colors go well with #ba072c?

For interface work: #FAF4F6 as the surface, #EDC0C9 for borders, #9B4B5B for secondary text, #03C96E as an accent and #7B051D for hover and pressed states. For a palette, the analogous pair #BA0785 and #BA3B07 stays calm, while #07BA95 is the loudest partner.

What is #ba072c in CMYK for printing?

cmyk(0%, 96%, 76%, 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 #ba072c warm or cool?

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

Work with #ba072c in the Color Lab