Skip to content

#ac2f39

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

RGB
172, 47, 57
HSL
355°, 57%, 43%
CMYK
0, 73, 67, 33
Luminance
0.1110

Every format

HEX#ac2f39
RGBrgb(172, 47, 57)
HSLhsl(355, 57%, 43%)
CMYKcmyk(0%, 73%, 67%, 33%)
LABlab(39.8 50.9 24.4)
LCHlch(39.8 56.4 25.6)
OKLCHoklch(0.500 0.161 21.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2f39 on white: 6.52:1
AA ✓ pass · AA-large · AAA
Aa
#ac2f39 on black: 3.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.4%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta72.7%
Yellow66.9%
Key (black)32.5%

Color previews

#ac2f39 text on a black background

contrast 3.22:1

Card sample

#ac2f39 text on a white background

contrast 6.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2f39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2f39 in the Color Lab