Skip to content

#ac2f0c

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

RGB
172, 47, 12
HSL
13°, 87%, 36%
CMYK
0, 73, 93, 33
Luminance
0.1083

Every format

HEX#ac2f0c
RGBrgb(172, 47, 12)
HSLhsl(13, 87%, 36%)
CMYKcmyk(0%, 73%, 93%, 33%)
LABlab(39.3 49.3 47.5)
LCHlch(39.3 68.5 44.0)
OKLCHoklch(0.495 0.167 34.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.5%
Green18.4%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta72.7%
Yellow93.0%
Key (black)32.5%

Color previews

#ac2f0c text on a black background

contrast 3.17:1

Card sample

#ac2f0c text on a white background

contrast 6.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2f0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2f0c in the Color Lab