Skip to content

#ba1721

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

RGB
186, 23, 33
HSL
356°, 78%, 41%
CMYK
0, 88, 82, 27
Luminance
0.1116

At a glance

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

Hex
#ba1721
Hue
356°
red
Saturation
78%
electric
Lightness
41%
dark
Brightness
73%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1116
WCAG relative
Temperature
Warm
19/100 cool
Color family
Red
Tone
Electric
Best ink
White
6.50:1
Closest name
Firebrick
ΔE2000 1.5
Where it sits
Hue356° of 360°
Saturation78%
Lightness41%
Temperature
Warm ← → Cool19% 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#ba1721
RGBrgb(186, 23, 33)
HSLhsl(356, 78%, 41%)
CMYKcmyk(0%, 88%, 82%, 27%)
LABlab(39.9 60.7 39.5)
LCHlch(39.9 72.4 33.0)
OKLCHoklch(0.505 0.194 25.7)
Decimal12195617
Display P3color(display-p3 0.729 0.090 0.129)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba1721 on white: 6.50:1
AA ✓ pass · AA-large · AAA
Aa
#ba1721 on black: 3.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #50481F
deuteranopia · #776A18
tritanopia · #CD001E

Color scale — 50 to 950

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

#FCF3F3
#F9E6E8
#F5C7CA
#F39BA1
#EC6971
#E63742
#DA1B27
#ba1721
#91121A
#691117
#420B0E
Base = 700Lightest = 50 · #FCF3F3Darkest = 950 · #420B0E
:root {
  --brand-50: #FCF3F3;
  --brand-100: #F9E6E8;
  --brand-200: #F5C7CA;
  --brand-300: #F39BA1;
  --brand-400: #EC6971;
  --brand-500: #E63742;
  --brand-600: #DA1B27;
  --brand-700: #ba1721;
  --brand-800: #91121A;
  --brand-900: #691117;
  --brand-950: #420B0E;
  --brand: #ba1721;
  --brand-ink: #ffffff;
}

Colors that work with #ba1721

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#FAF4F5
Tinted page background
Border#EDC0C3
Hairlines and dividers
Muted text#9B4B50
Captions on the surface
Accent#13B986
Second voice, not a rival
Dark variant#710E14
Hover, pressed, headers
Light variant#FCE8EA
Selected rows, tints
Dark surface#241415
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 #ba1721

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#17BAB0
Analogous left#BA1773
Analogous right#BA5E17
Split-complement 1#17BA5E
Split-complement 2#1773BA
Triadic 1#21BA17
Triadic 2#1721BA
Tetradic#73BA17

RGB percentages

Red72.9%
Green9.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta87.6%
Yellow82.3%
Key (black)27.1%

Color previews

#ba1721 text on a black background

contrast 3.23:1

Card sample

#ba1721 text on a white background

contrast 6.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba1721

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.

#ba1721 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.

#ba1721, answered

What color is #ba1721?

#ba1721 is a dark electric red, closest to Firebrick (ΔE2000 1.5). It sits at 356° on the hue wheel with 78% saturation and 41% lightness, which reads as warm.

What is the RGB value of #ba1721?

rgb(186, 23, 33) — 186 red, 23 green and 33 blue out of 255, or 72.9% / 9% / 12.9% by channel.

Is #ba1721 a light or a dark color?

It is a dark color. Relative luminance is 0.1116 and perceived brightness is 41%, so white text on it reaches 6.50:1.

Should I use black or white text on #ba1721?

White. It scores 6.50:1 against #ba1721, versus 3.23:1 for black — AA at any size.

What is the complementary color of #ba1721?

#17BAB0 sits directly opposite on the wheel. Softer options are the split-complements #17BA5E and #1773BA, which give the same contrast with far less vibration.

What colors go well with #ba1721?

For interface work: #FAF4F5 as the surface, #EDC0C3 for borders, #9B4B50 for secondary text, #13B986 as an accent and #710E14 for hover and pressed states. For a palette, the analogous pair #BA1773 and #BA5E17 stays calm, while #17BAB0 is the loudest partner.

What is #ba1721 in CMYK for printing?

cmyk(0%, 88%, 82%, 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 #ba1721 warm or cool?

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

Work with #ba1721 in the Color Lab