Skip to content

#ac0c21

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

RGB
172, 12, 33
HSL
352°, 87%, 36%
CMYK
0, 93, 81, 33
Luminance
0.0914

Every format

HEX#ac0c21
RGBrgb(172, 12, 33)
HSLhsl(352, 87%, 36%)
CMYKcmyk(0%, 93%, 81%, 33%)
LABlab(36.3 58.7 34.9)
LCHlch(36.3 68.3 30.7)
OKLCHoklch(0.473 0.186 23.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac0c21 on white: 7.42:1
AA ✓ pass · AA-large · AAA
Aa
#ac0c21 on black: 2.83:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green4.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta93.0%
Yellow80.8%
Key (black)32.5%

Color previews

#ac0c21 text on a black background

contrast 2.83:1

Card sample

#ac0c21 text on a white background

contrast 7.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac0c21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac0c21 in the Color Lab