Skip to content

#b12c42

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

RGB
177, 44, 66
HSL
350°, 60%, 43%
CMYK
0, 75, 63, 31
Luminance
0.1154

Every format

HEX#b12c42
RGBrgb(177, 44, 66)
HSLhsl(350, 60%, 43%)
CMYKcmyk(0%, 75%, 63%, 31%)
LABlab(40.5 54.0 19.9)
LCHlch(40.5 57.6 20.2)
OKLCHoklch(0.508 0.168 16.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b12c42 on white: 6.35:1
AA ✓ pass · AA-large · AAA
Aa
#b12c42 on black: 3.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.4%
Green17.3%
Blue25.9%

CMYK percentages

Cyan0.0%
Magenta75.1%
Yellow62.7%
Key (black)30.6%

Color previews

#b12c42 text on a black background

contrast 3.31:1

Card sample

#b12c42 text on a white background

contrast 6.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b12c42

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b12c42 in the Color Lab