Skip to content

#ac0027

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

RGB
172, 0, 39
HSL
346°, 100%, 34%
CMYK
0, 100, 77, 33
Luminance
0.0892

Every format

HEX#ac0027
RGBrgb(172, 0, 39)
HSLhsl(346, 100%, 34%)
CMYKcmyk(0%, 100%, 77%, 33%)
LABlab(35.8 60.4 30.9)
LCHlch(35.8 67.8 27.1)
OKLCHoklch(0.470 0.189 21.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.5%
Green0.0%
Blue15.3%

CMYK percentages

Cyan0.0%
Magenta100.0%
Yellow77.3%
Key (black)32.5%

Color previews

#ac0027 text on a black background

contrast 2.78:1

Card sample

#ac0027 text on a white background

contrast 7.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac0027

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac0027 in the Color Lab