Skip to content

#ac2e21

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

RGB
172, 46, 33
HSL
6°, 68%, 40%
CMYK
0, 73, 81, 33
Luminance
0.1083

Every format

HEX#ac2e21
RGBrgb(172, 46, 33)
HSLhsl(6, 68%, 40%)
CMYKcmyk(0%, 73%, 81%, 33%)
LABlab(39.3 50.2 38.0)
LCHlch(39.3 62.9 37.1)
OKLCHoklch(0.496 0.165 29.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2e21 on white: 6.63:1
AA ✓ pass · AA-large · AAA
Aa
#ac2e21 on black: 3.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta73.3%
Yellow80.8%
Key (black)32.5%

Color previews

#ac2e21 text on a black background

contrast 3.17:1

Card sample

#ac2e21 text on a white background

contrast 6.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2e21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2e21 in the Color Lab