Skip to content

#a22021

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

RGB
162, 32, 33
HSL
360°, 67%, 38%
CMYK
0, 80, 80, 37
Luminance
0.0882

Every format

HEX#a22021
RGBrgb(162, 32, 33)
HSLhsl(360, 67%, 38%)
CMYKcmyk(0%, 80%, 80%, 37%)
LABlab(35.6 51.7 33.6)
LCHlch(35.6 61.7 33.1)
OKLCHoklch(0.465 0.166 26.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a22021 on white: 7.60:1
AA ✓ pass · AA-large · AAA
Aa
#a22021 on black: 2.76:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green12.5%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta80.2%
Yellow79.6%
Key (black)36.5%

Color previews

#a22021 text on a black background

contrast 2.76:1

Card sample

#a22021 text on a white background

contrast 7.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a22021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a22021 in the Color Lab