Skip to content

#9f1e21

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

RGB
159, 30, 33
HSL
359°, 68%, 37%
CMYK
0, 81, 79, 38
Luminance
0.0841

Every format

HEX#9f1e21
RGBrgb(159, 30, 33)
HSLhsl(359, 68%, 37%)
CMYKcmyk(0%, 81%, 79%, 38%)
LABlab(34.8 51.4 32.6)
LCHlch(34.8 60.8 32.4)
OKLCHoklch(0.458 0.164 25.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f1e21 on white: 7.83:1
AA ✓ pass · AA-large · AAA
Aa
#9f1e21 on black: 2.68:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green11.8%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta81.1%
Yellow79.2%
Key (black)37.6%

Color previews

#9f1e21 text on a black background

contrast 2.68:1

Card sample

#9f1e21 text on a white background

contrast 7.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f1e21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9f1e21 in the Color Lab