Skip to content

#ba0502

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

RGB
186, 5, 2
HSL
1°, 98%, 37%
CMYK
0, 97, 99, 27
Luminance
0.1055

At a glance

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

Hex
#ba0502
Hue
red
Saturation
98%
electric
Lightness
37%
dark
Brightness
73%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1055
WCAG relative
Temperature
Warm
16/100 cool
Color family
Red
Tone
Electric
Best ink
White
6.75:1
Closest name
Firebrick
ΔE2000 5.3
Where it sits
Hue1° of 360°
Saturation98%
Lightness37%
Temperature
Warm ← → Cool16% 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#ba0502
RGBrgb(186, 5, 2)
HSLhsl(1, 98%, 37%)
CMYKcmyk(0%, 97%, 99%, 27%)
LABlab(38.8 62.7 52.3)
LCHlch(38.8 81.6 39.8)
OKLCHoklch(0.497 0.202 29.3)
Decimal12190978
Display P3color(display-p3 0.729 0.020 0.008)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba0502 on white: 6.75:1
AA ✓ pass · AA-large · AAA
Aa
#ba0502 on black: 3.11:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4E4400
deuteranopia · #766800
tritanopia · #CE000C

Color scale — 50 to 950

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

#FDF1F1
#FCE4E3
#FBC2C1
#FE9290
#FD5B58
#FD2521
#F20703
#ba0502
#A10402
#740806
#490504
Base = 700Lightest = 50 · #FDF1F1Darkest = 950 · #490504
:root {
  --brand-50: #FDF1F1;
  --brand-100: #FCE4E3;
  --brand-200: #FBC2C1;
  --brand-300: #FE9290;
  --brand-400: #FD5B58;
  --brand-500: #FD2521;
  --brand-600: #F20703;
  --brand-700: #ba0502;
  --brand-800: #A10402;
  --brand-900: #740806;
  --brand-950: #490504;
  --brand: #ba0502;
  --brand-ink: #ffffff;
}

Colors that work with #ba0502

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#FAF4F4
Tinted page background
Border#EDC1C0
Hairlines and dividers
Muted text#9B4C4B
Captions on the surface
Accent#00CC9C
Second voice, not a rival
Dark variant#7E0301
Hover, pressed, headers
Light variant#FFE6E6
Selected rows, tints
Dark surface#241414
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 #ba0502

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#02B7BA
Analogous left#BA025B
Analogous right#BA6102
Split-complement 1#02BA61
Split-complement 2#025BBA
Triadic 1#02BA05
Triadic 2#0502BA
Tetradic#5BBA02

RGB percentages

Red72.9%
Green2.0%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta97.3%
Yellow98.9%
Key (black)27.1%

Color previews

#ba0502 text on a black background

contrast 3.11:1

Card sample

#ba0502 text on a white background

contrast 6.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba0502

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.

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

#ba0502, answered

What color is #ba0502?

#ba0502 is a dark electric red, closest to Firebrick (ΔE2000 5.3). It sits at 1° on the hue wheel with 98% saturation and 37% lightness, which reads as warm.

What is the RGB value of #ba0502?

rgb(186, 5, 2) — 186 red, 5 green and 2 blue out of 255, or 72.9% / 2% / 0.8% by channel.

Is #ba0502 a light or a dark color?

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

Should I use black or white text on #ba0502?

White. It scores 6.75:1 against #ba0502, versus 3.11:1 for black — AA at any size.

What is the complementary color of #ba0502?

#02B7BA sits directly opposite on the wheel. Softer options are the split-complements #02BA61 and #025BBA, which give the same contrast with far less vibration.

What colors go well with #ba0502?

For interface work: #FAF4F4 as the surface, #EDC1C0 for borders, #9B4C4B for secondary text, #00CC9C as an accent and #7E0301 for hover and pressed states. For a palette, the analogous pair #BA025B and #BA6102 stays calm, while #02B7BA is the loudest partner.

What is #ba0502 in CMYK for printing?

cmyk(0%, 97%, 99%, 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 #ba0502 warm or cool?

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

Work with #ba0502 in the Color Lab