Skip to content

#ac2f21

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

RGB
172, 47, 33
HSL
6°, 68%, 40%
CMYK
0, 73, 81, 33
Luminance
0.1091

Every format

HEX#ac2f21
RGBrgb(172, 47, 33)
HSLhsl(6, 68%, 40%)
CMYKcmyk(0%, 73%, 81%, 33%)
LABlab(39.4 49.8 38.1)
LCHlch(39.4 62.7 37.4)
OKLCHoklch(0.497 0.164 30.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2f21 on white: 6.60:1
AA ✓ pass · AA-large · AAA
Aa
#ac2f21 on black: 3.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.4%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta72.7%
Yellow80.8%
Key (black)32.5%

Color previews

#ac2f21 text on a black background

contrast 3.18:1

Card sample

#ac2f21 text on a white background

contrast 6.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2f21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2f21 in the Color Lab