Skip to content

#ba2d4f

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

RGB
186, 45, 79
HSL
346°, 61%, 45%
CMYK
0, 76, 58, 27
Luminance
0.1288

Every format

HEX#ba2d4f
RGBrgb(186, 45, 79)
HSLhsl(346, 61%, 45%)
CMYKcmyk(0%, 76%, 58%, 27%)
LABlab(42.6 57.2 14.9)
LCHlch(42.6 59.1 14.6)
OKLCHoklch(0.528 0.177 12.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2d4f on white: 5.87:1
AA ✓ pass · AA-large · AAA
Aa
#ba2d4f on black: 3.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green17.6%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta75.8%
Yellow57.5%
Key (black)27.1%

Color previews

#ba2d4f text on a black background

contrast 3.58:1

Card sample

#ba2d4f text on a white background

contrast 5.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2d4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2d4f in the Color Lab