Skip to content

#b52821

a dark, vivid red · warm · “firebrick”

RGB
181, 40, 33
HSL
3°, 69%, 42%
CMYK
0, 78, 82, 29
Luminance
0.1145

Every format

HEX#b52821
RGBrgb(181, 40, 33)
HSLhsl(3, 69%, 42%)
CMYKcmyk(0%, 78%, 82%, 29%)
LABlab(40.3 55.0 39.6)
LCHlch(40.3 67.8 35.7)
OKLCHoklch(0.507 0.178 28.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b52821 on white: 6.38:1
AA ✓ pass · AA-large · AAA
Aa
#b52821 on black: 3.29:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green15.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta77.9%
Yellow81.8%
Key (black)29.0%

Color previews

#b52821 text on a black background

contrast 3.29:1

Card sample

#b52821 text on a white background

contrast 6.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b52821

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b52821 in the Color Lab