Skip to content

#ba2f49

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

RGB
186, 47, 73
HSL
349°, 60%, 46%
CMYK
0, 75, 61, 27
Luminance
0.1295

Every format

HEX#ba2f49
RGBrgb(186, 47, 73)
HSLhsl(349, 60%, 46%)
CMYKcmyk(0%, 75%, 61%, 27%)
LABlab(42.7 56.2 18.8)
LCHlch(42.7 59.2 18.5)
OKLCHoklch(0.528 0.175 15.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2f49 on white: 5.85:1
AA ✓ pass · AA-large · AAA
Aa
#ba2f49 on black: 3.59:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green18.4%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta74.7%
Yellow60.8%
Key (black)27.1%

Color previews

#ba2f49 text on a black background

contrast 3.59:1

Card sample

#ba2f49 text on a white background

contrast 5.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2f49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2f49 in the Color Lab