Skip to content

#ac0213

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

RGB
172, 2, 19
HSL
354°, 98%, 34%
CMYK
0, 99, 89, 33
Luminance
0.0886

Every format

HEX#ac0213
RGBrgb(172, 2, 19)
HSLhsl(354, 98%, 34%)
CMYKcmyk(0%, 99%, 89%, 33%)
LABlab(35.7 59.6 42.1)
LCHlch(35.7 73.0 35.2)
OKLCHoklch(0.469 0.190 26.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac0213 on white: 7.58:1
AA ✓ pass · AA-large · AAA
Aa
#ac0213 on black: 2.77:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green0.8%
Blue7.5%

CMYK percentages

Cyan0.0%
Magenta98.8%
Yellow89.0%
Key (black)32.5%

Color previews

#ac0213 text on a black background

contrast 2.77:1

Card sample

#ac0213 text on a white background

contrast 7.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac0213

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac0213 in the Color Lab