Skip to content

#870021

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

RGB
135, 0, 33
HSL
345°, 100%, 27%
CMYK
0, 100, 76, 47
Luminance
0.0526

Every format

HEX#870021
RGBrgb(135, 0, 33)
HSLhsl(345, 100%, 27%)
CMYKcmyk(0%, 100%, 76%, 47%)
LABlab(27.5 50.8 22.9)
LCHlch(27.5 55.7 24.3)
OKLCHoklch(0.395 0.158 19.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#870021 on white: 10.23:1
AA ✓ pass · AA-large · AAA
Aa
#870021 on black: 2.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red52.9%
Green0.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta100.0%
Yellow75.6%
Key (black)47.1%

Color previews

#870021 text on a black background

contrast 2.05:1

Card sample

#870021 text on a white background

contrast 10.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #870021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #870021 in the Color Lab