Skip to content

#8f1c21

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

RGB
143, 28, 33
HSL
357°, 67%, 34%
CMYK
0, 80, 77, 44
Luminance
0.0678

Every format

HEX#8f1c21
RGBrgb(143, 28, 33)
HSLhsl(357, 67%, 34%)
CMYKcmyk(0%, 80%, 77%, 44%)
LABlab(31.3 47.1 27.8)
LCHlch(31.3 54.7 30.6)
OKLCHoklch(0.426 0.150 24.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8f1c21 on white: 8.91:1
AA ✓ pass · AA-large · AAA
Aa
#8f1c21 on black: 2.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red56.1%
Green11.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta80.4%
Yellow76.9%
Key (black)43.9%

Color previews

#8f1c21 text on a black background

contrast 2.36:1

Card sample

#8f1c21 text on a white background

contrast 8.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f1c21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8f1c21 in the Color Lab