Skip to content

#ac0022

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

RGB
172, 0, 34
HSL
348°, 100%, 34%
CMYK
0, 100, 80, 33
Luminance
0.0889

Every format

HEX#ac0022
RGBrgb(172, 0, 34)
HSLhsl(348, 100%, 34%)
CMYKcmyk(0%, 100%, 80%, 33%)
LABlab(35.8 60.2 33.8)
LCHlch(35.8 69.1 29.3)
OKLCHoklch(0.470 0.190 22.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac0022 on white: 7.56:1
AA ✓ pass · AA-large · AAA
Aa
#ac0022 on black: 2.78:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green0.0%
Blue13.3%

CMYK percentages

Cyan0.0%
Magenta100.0%
Yellow80.2%
Key (black)32.5%

Color previews

#ac0022 text on a black background

contrast 2.78:1

Card sample

#ac0022 text on a white background

contrast 7.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac0022

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac0022 in the Color Lab