Skip to content

#ab2d2c

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

RGB
171, 45, 44
HSL
1°, 59%, 42%
CMYK
0, 74, 74, 33
Luminance
0.1072

Every format

HEX#ab2d2c
RGBrgb(171, 45, 44)
HSLhsl(1, 59%, 42%)
CMYKcmyk(0%, 74%, 74%, 33%)
LABlab(39.1 50.6 31.4)
LCHlch(39.1 59.6 31.9)
OKLCHoklch(0.495 0.163 25.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2d2c on white: 6.68:1
AA ✓ pass · AA-large · AAA
Aa
#ab2d2c on black: 3.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green17.6%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta73.7%
Yellow74.3%
Key (black)32.9%

Color previews

#ab2d2c text on a black background

contrast 3.14:1

Card sample

#ab2d2c text on a white background

contrast 6.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2d2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2d2c in the Color Lab