Skip to content

#ab2f3e

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

RGB
171, 47, 62
HSL
353°, 57%, 43%
CMYK
0, 73, 64, 33
Luminance
0.1104

Every format

HEX#ab2f3e
RGBrgb(171, 47, 62)
HSLhsl(353, 57%, 43%)
CMYKcmyk(0%, 73%, 64%, 33%)
LABlab(39.6 50.8 21.1)
LCHlch(39.6 55.0 22.5)
OKLCHoklch(0.499 0.160 18.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2f3e on white: 6.55:1
AA ✓ pass · AA-large · AAA
Aa
#ab2f3e on black: 3.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green18.4%
Blue24.3%

CMYK percentages

Cyan0.0%
Magenta72.5%
Yellow63.7%
Key (black)32.9%

Color previews

#ab2f3e text on a black background

contrast 3.21:1

Card sample

#ab2f3e text on a white background

contrast 6.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2f3e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2f3e in the Color Lab