Skip to content

#ba2e2d

a balanced, vivid red · warm · closest name: firebrick

RGB
186, 46, 45
HSL
0°, 61%, 45%
CMYK
0, 75, 76, 27
Luminance
0.1258

Every format

HEX#ba2e2d
RGBrgb(186, 46, 45)
HSLhsl(0, 61%, 45%)
CMYKcmyk(0%, 75%, 76%, 27%)
LABlab(42.1 55.0 35.0)
LCHlch(42.1 65.3 32.5)
OKLCHoklch(0.522 0.177 26.2)

Copy-ready code

/* CSS */
color: #ba2e2d;
background-color: #ba2e2d;
/* Tailwind (arbitrary) */
class="text-[#ba2e2d] bg-[#ba2e2d]"
/* SCSS */
$brand: #ba2e2d;
/* SwiftUI */
Color(red: 0.729, green: 0.180, blue: 0.176)
/* Android */
Color.parseColor("#ba2e2d")

Accessibility — WCAG contrast

Aa
#ba2e2d on white: 5.97:1
AA ✓ pass · AA-large · AAA
Aa
#ba2e2d on black: 3.52:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green18.0%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta75.3%
Yellow75.8%
Key (black)27.1%

Color previews

#ba2e2d text on a black background

contrast 3.52:1

Card sample

#ba2e2d text on a white background

contrast 5.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2e2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2e2d in the Color Lab