Skip to content

#ba2c21

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

RGB
186, 44, 33
HSL
4°, 70%, 43%
CMYK
0, 76, 82, 27
Luminance
0.1235

Every format

HEX#ba2c21
RGBrgb(186, 44, 33)
HSLhsl(4, 70%, 43%)
CMYKcmyk(0%, 76%, 82%, 27%)
LABlab(41.8 55.3 41.3)
LCHlch(41.8 69.0 36.8)
OKLCHoklch(0.519 0.180 29.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2c21 on white: 6.05:1
AA ✓ pass · AA-large · AAA
Aa
#ba2c21 on black: 3.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green17.3%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta76.3%
Yellow82.3%
Key (black)27.1%

Color previews

#ba2c21 text on a black background

contrast 3.47:1

Card sample

#ba2c21 text on a white background

contrast 6.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2c21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2c21 in the Color Lab