Skip to content

#ac2c21

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

RGB
172, 44, 33
HSL
5°, 68%, 40%
CMYK
0, 74, 81, 33
Luminance
0.1068

Every format

HEX#ac2c21
RGBrgb(172, 44, 33)
HSLhsl(5, 68%, 40%)
CMYKcmyk(0%, 74%, 81%, 33%)
LABlab(39.0 50.9 37.7)
LCHlch(39.0 63.3 36.6)
OKLCHoklch(0.494 0.166 29.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2c21 on white: 6.70:1
AA ✓ pass · AA-large · AAA
Aa
#ac2c21 on black: 3.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green17.3%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta74.4%
Yellow80.8%
Key (black)32.5%

Color previews

#ac2c21 text on a black background

contrast 3.14:1

Card sample

#ac2c21 text on a white background

contrast 6.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2c21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2c21 in the Color Lab