Skip to content

#ab2a21

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

RGB
171, 42, 33
HSL
4°, 68%, 40%
CMYK
0, 75, 81, 33
Luminance
0.1042

At a glance

Every number on this page in one read: what #ab2a21 is made of, how bright it looks, and which way it leans.

Hex
#ab2a21
Hue
red
Saturation
68%
vivid
Lightness
40%
dark
Brightness
67%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1042
WCAG relative
Temperature
Warm
15/100 cool
Color family
Red
Tone
Vivid
Best ink
White
6.81:1
Closest name
Firebrick
ΔE2000 1.7
Where it sits
Hue4° of 360°
Saturation68%
Lightness40%
Temperature
Warm ← → Cool15% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#ab2a21
RGBrgb(171, 42, 33)
HSLhsl(4, 68%, 40%)
CMYKcmyk(0%, 75%, 81%, 33%)
LABlab(38.6 51.3 37.2)
LCHlch(38.6 63.4 36.0)
OKLCHoklch(0.490 0.167 28.8)
Decimal11217441
Display P3color(display-p3 0.671 0.165 0.129)

Copy-ready code

/* CSS */
color: #ab2a21;
background-color: #ab2a21;
/* Tailwind (arbitrary) */
class="text-[#ab2a21] bg-[#ab2a21]"
/* SCSS */
$brand: #ab2a21;
/* SwiftUI */
Color(red: 0.671, green: 0.165, blue: 0.129)
/* Android */
Color.parseColor("#ab2a21")
/* Flutter */
Color(0xFFAB2A21)
/* Python / OpenCV (BGR) */
(33, 42, 171)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #ab2a21 · 6.81:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.81:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.08:1
AA fail · AA large pass · AAA fail
Reading the other direction: #ab2a21 as text scores 6.81:1 on white and 3.08:1 on black.

Accessibility — WCAG contrast

Aa
#ab2a21 on white: 6.81:1
AA ✓ pass · AA-large · AAA
Aa
#ab2a21 on black: 3.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #51491E
deuteranopia · #71651B
tritanopia · #BD0029

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ab2a21 is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBF4F3
#F8E9E8
#F2CDCA
#EDA6A1
#E47972
#DB4D43
#CD3228
#ab2a21
#89221A
#631C17
#3E120E
Base = 700Lightest = 50 · #FBF4F3Darkest = 950 · #3E120E
:root {
  --brand-50: #FBF4F3;
  --brand-100: #F8E9E8;
  --brand-200: #F2CDCA;
  --brand-300: #EDA6A1;
  --brand-400: #E47972;
  --brand-500: #DB4D43;
  --brand-600: #CD3228;
  --brand-700: #ab2a21;
  --brand-800: #89221A;
  --brand-900: #631C17;
  --brand-950: #3E120E;
  --brand: #ab2a21;
  --brand-ink: #ffffff;
}

Colors that work with #ab2a21

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#FAF5F4
Tinted page background
Border#EDC3C0
Hairlines and dividers
Muted text#9B504B
Captions on the surface
Accent#1DAF94
Second voice, not a rival
Dark variant#6B1A15
Hover, pressed, headers
Light variant#FBEBEA
Selected rows, tints
Dark surface#241514
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #ab2a21

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#21A2AB
Analogous left#AB215D
Analogous right#AB6F21
Split-complement 1#21AB6F
Split-complement 2#215DAB
Triadic 1#21AB2A
Triadic 2#2A21AB
Tetradic#5DAB21

RGB percentages

Red67.1%
Green16.5%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta75.4%
Yellow80.7%
Key (black)32.9%

Color previews

#ab2a21 text on a black background

contrast 3.08:1

Card sample

#ab2a21 text on a white background

contrast 6.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2a21

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#ab2a21 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Food and drinkEntertainmentRetailSport
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#ab2a21, answered

What color is #ab2a21?

#ab2a21 is a dark vivid red, closest to Firebrick (ΔE2000 1.7). It sits at 4° on the hue wheel with 68% saturation and 40% lightness, which reads as warm.

What is the RGB value of #ab2a21?

rgb(171, 42, 33) — 171 red, 42 green and 33 blue out of 255, or 67.1% / 16.5% / 12.9% by channel.

Is #ab2a21 a light or a dark color?

It is a dark color. Relative luminance is 0.1042 and perceived brightness is 39%, so white text on it reaches 6.81:1.

Should I use black or white text on #ab2a21?

White. It scores 6.81:1 against #ab2a21, versus 3.08:1 for black — AA at any size.

What is the complementary color of #ab2a21?

#21A2AB sits directly opposite on the wheel. Softer options are the split-complements #21AB6F and #215DAB, which give the same contrast with far less vibration.

What colors go well with #ab2a21?

For interface work: #FAF5F4 as the surface, #EDC3C0 for borders, #9B504B for secondary text, #1DAF94 as an accent and #6B1A15 for hover and pressed states. For a palette, the analogous pair #AB215D and #AB6F21 stays calm, while #21A2AB is the loudest partner.

What is #ab2a21 in CMYK for printing?

cmyk(0%, 75%, 81%, 33%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #ab2a21 warm or cool?

Warm — it scores 15 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AB4921; nudged cooler, #AD1F4A.

Work with #ab2a21 in the Color Lab