Skip to content

#ac0f2f

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

RGB
172, 15, 47
HSL
348°, 84%, 37%
CMYK
0, 91, 73, 33
Luminance
0.0932

Every format

HEX#ac0f2f
RGBrgb(172, 15, 47)
HSLhsl(348, 84%, 37%)
CMYKcmyk(0%, 91%, 73%, 33%)
LABlab(36.6 58.8 26.8)
LCHlch(36.6 64.6 24.5)
OKLCHoklch(0.476 0.184 19.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac0f2f on white: 7.33:1
AA ✓ pass · AA-large · AAA
Aa
#ac0f2f on black: 2.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green5.9%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta91.3%
Yellow72.7%
Key (black)32.5%

Color previews

#ac0f2f text on a black background

contrast 2.86:1

Card sample

#ac0f2f text on a white background

contrast 7.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac0f2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac0f2f in the Color Lab