Skip to content

#9d2a21

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

RGB
157, 42, 33
HSL
4°, 65%, 37%
CMYK
0, 73, 79, 38
Luminance
0.0893

Every format

HEX#9d2a21
RGBrgb(157, 42, 33)
HSLhsl(4, 65%, 37%)
CMYKcmyk(0%, 73%, 79%, 38%)
LABlab(35.9 46.7 33.5)
LCHlch(35.9 57.5 35.7)
OKLCHoklch(0.465 0.153 28.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9d2a21 on white: 7.54:1
AA ✓ pass · AA-large · AAA
Aa
#9d2a21 on black: 2.79:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.6%
Green16.5%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta73.2%
Yellow79.0%
Key (black)38.4%

Color previews

#9d2a21 text on a black background

contrast 2.79:1

Card sample

#9d2a21 text on a white background

contrast 7.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(157, 42, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(157, 42, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9d2a21;
background: linear-gradient(135deg, #9d2a21, #9D7D21);

Monochromatic scale

Palettes built from #9d2a21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9d2a21 in the Color Lab