Skip to content

#a71b21

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

RGB
167, 27, 33
HSL
357°, 72%, 38%
CMYK
0, 84, 80, 35
Luminance
0.0911

At a glance

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

Hex
#a71b21
Hue
357°
red
Saturation
72%
vivid
Lightness
38%
dark
Brightness
65%
HSV value
Perceived
37%
weighted brightness
Luminance
0.0911
WCAG relative
Temperature
Warm
18/100 cool
Color family
Red
Tone
Vivid
Best ink
White
7.44:1
Closest name
Brown
ΔE2000 2.1
Where it sits
Hue357° of 360°
Saturation72%
Lightness38%
Temperature
Warm ← → Cool18% 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#a71b21
RGBrgb(167, 27, 33)
HSLhsl(357, 72%, 38%)
CMYKcmyk(0%, 84%, 80%, 35%)
LABlab(36.2 54.5 34.5)
LCHlch(36.2 64.5 32.3)
OKLCHoklch(0.471 0.174 25.5)
Decimal10951457
Display P3color(display-p3 0.655 0.106 0.129)

Copy-ready code

/* CSS */
color: #a71b21;
background-color: #a71b21;
/* Tailwind (arbitrary) */
class="text-[#a71b21] bg-[#a71b21]"
/* SCSS */
$brand: #a71b21;
/* SwiftUI */
Color(red: 0.655, green: 0.106, blue: 0.129)
/* Android */
Color.parseColor("#a71b21")
/* Flutter */
Color(0xFFA71B21)
/* Python / OpenCV (BGR) */
(33, 27, 167)

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 #a71b21 · 7.44:1
Use #ffffffAAA at every size.
Aa
White text · 7.44:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.82:1
AA fail · AA large fail · AAA fail
Reading the other direction: #a71b21 as text scores 7.44:1 on white and 2.82:1 on black.

Accessibility — WCAG contrast

Aa
#a71b21 on white: 7.44:1
AA ✓ pass · AA-large · AAA
Aa
#a71b21 on black: 2.82:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #49421F
deuteranopia · #6B601A
tritanopia · #B8001F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #a71b21 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.

#FCF3F3
#F8E7E8
#F3C9CB
#EF9EA2
#E86E73
#E03E45
#D3222A
#a71b21
#8D171C
#661518
#400D0F
Base = 700Lightest = 50 · #FCF3F3Darkest = 950 · #400D0F
:root {
  --brand-50: #FCF3F3;
  --brand-100: #F8E7E8;
  --brand-200: #F3C9CB;
  --brand-300: #EF9EA2;
  --brand-400: #E86E73;
  --brand-500: #E03E45;
  --brand-600: #D3222A;
  --brand-700: #a71b21;
  --brand-800: #8D171C;
  --brand-900: #661518;
  --brand-950: #400D0F;
  --brand: #a71b21;
  --brand-ink: #ffffff;
}

Colors that work with #a71b21

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#FAF4F5
Tinted page background
Border#EDC0C2
Hairlines and dividers
Muted text#9B4B4E
Captions on the surface
Accent#18B486
Second voice, not a rival
Dark variant#6E1216
Hover, pressed, headers
Light variant#FBE9EA
Selected rows, tints
Dark surface#241414
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 #a71b21

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
  • Text on black or near-black surfaces
  • 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#1BA7A1
Analogous left#A71B67
Analogous right#A75B1B
Split-complement 1#1BA75B
Split-complement 2#1B67A7
Triadic 1#21A71B
Triadic 2#1B21A7
Tetradic#67A71B

RGB percentages

Red65.5%
Green10.6%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta83.8%
Yellow80.2%
Key (black)34.5%

Color previews

#a71b21 text on a black background

contrast 2.82:1

Card sample

#a71b21 text on a white background

contrast 7.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a71b21

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.

#a71b21 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.

#a71b21, answered

What color is #a71b21?

#a71b21 is a dark vivid red, closest to Brown (ΔE2000 2.1). It sits at 357° on the hue wheel with 72% saturation and 38% lightness, which reads as warm.

What is the RGB value of #a71b21?

rgb(167, 27, 33) — 167 red, 27 green and 33 blue out of 255, or 65.5% / 10.6% / 12.9% by channel.

Is #a71b21 a light or a dark color?

It is a dark color. Relative luminance is 0.0911 and perceived brightness is 37%, so white text on it reaches 7.44:1.

Should I use black or white text on #a71b21?

White. It scores 7.44:1 against #a71b21, versus 2.82:1 for black — AAA at any size.

What is the complementary color of #a71b21?

#1BA7A1 sits directly opposite on the wheel. Softer options are the split-complements #1BA75B and #1B67A7, which give the same contrast with far less vibration.

What colors go well with #a71b21?

For interface work: #FAF4F5 as the surface, #EDC0C2 for borders, #9B4B4E for secondary text, #18B486 as an accent and #6E1216 for hover and pressed states. For a palette, the analogous pair #A71B67 and #A75B1B stays calm, while #1BA7A1 is the loudest partner.

What is #a71b21 in CMYK for printing?

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

Is #a71b21 warm or cool?

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

Work with #a71b21 in the Color Lab