Skip to content

#ab2c2f

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

RGB
171, 44, 47
HSL
359°, 59%, 42%
CMYK
0, 74, 73, 33
Luminance
0.1066

Every format

HEX#ab2c2f
RGBrgb(171, 44, 47)
HSLhsl(359, 59%, 42%)
CMYKcmyk(0%, 74%, 73%, 33%)
LABlab(39.0 51.1 29.6)
LCHlch(39.0 59.0 30.0)
OKLCHoklch(0.494 0.163 24.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2c2f on white: 6.70:1
AA ✓ pass · AA-large · AAA
Aa
#ab2c2f on black: 3.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green17.3%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta74.3%
Yellow72.5%
Key (black)32.9%

Color previews

#ab2c2f text on a black background

contrast 3.13:1

Card sample

#ab2c2f text on a white background

contrast 6.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2c2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2c2f in the Color Lab