Skip to content

#8a0821

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

RGB
138, 8, 33
HSL
349°, 89%, 29%
CMYK
0, 94, 76, 46
Luminance
0.0569

At a glance

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

Hex
#8a0821
Hue
349°
red
Saturation
89%
electric
Lightness
29%
dark
Brightness
54%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0569
WCAG relative
Temperature
Warm
23/100 cool
Color family
Red
Tone
Electric
Best ink
White
9.83:1
Closest name
Brown
ΔE2000 7.9
Where it sits
Hue349° of 360°
Saturation89%
Lightness29%
Temperature
Warm ← → Cool23% 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#8a0821
RGBrgb(138, 8, 33)
HSLhsl(349, 89%, 29%)
CMYKcmyk(0%, 94%, 76%, 46%)
LABlab(28.6 50.2 24.4)
LCHlch(28.6 55.9 26.0)
OKLCHoklch(0.404 0.157 20.5)
Decimal9046049
Display P3color(display-p3 0.541 0.031 0.129)

Copy-ready code

/* CSS */
color: #8a0821;
background-color: #8a0821;
/* Tailwind (arbitrary) */
class="text-[#8a0821] bg-[#8a0821]"
/* SCSS */
$brand: #8a0821;
/* SwiftUI */
Color(red: 0.541, green: 0.031, blue: 0.129)
/* Android */
Color.parseColor("#8a0821")
/* Flutter */
Color(0xFF8A0821)
/* Python / OpenCV (BGR) */
(33, 8, 138)

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

Accessibility — WCAG contrast

Aa
#8a0821 on white: 9.83:1
AA ✓ pass · AA-large · AAA
Aa
#8a0821 on black: 2.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #373321
deuteranopia · #564D1C
tritanopia · #980015

Color scale — 50 to 950

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

#FDF2F4
#FBE5E9
#F8C4CE
#F995A8
#F6607D
#F32B51
#E70D37
#C10B2E
#8a0821
#6F0B1E
#460713
Base = 800Lightest = 50 · #FDF2F4Darkest = 950 · #460713
:root {
  --brand-50: #FDF2F4;
  --brand-100: #FBE5E9;
  --brand-200: #F8C4CE;
  --brand-300: #F995A8;
  --brand-400: #F6607D;
  --brand-500: #F32B51;
  --brand-600: #E70D37;
  --brand-700: #C10B2E;
  --brand-800: #8a0821;
  --brand-900: #6F0B1E;
  --brand-950: #460713;
  --brand: #8a0821;
  --brand-ink: #ffffff;
}

Colors that work with #8a0821

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#EDC0C8
Hairlines and dividers
Muted text#9B4B5A
Captions on the surface
Accent#058D51
Second voice, not a rival
Dark variant#78071D
Hover, pressed, headers
Light variant#FEE7EB
Selected rows, tints
Dark surface#241417
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 #8a0821

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#088A71
Analogous left#8A0862
Analogous right#8A3008
Split-complement 1#088A30
Split-complement 2#08628A
Triadic 1#218A08
Triadic 2#08218A
Tetradic#628A08

RGB percentages

Red54.1%
Green3.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta94.2%
Yellow76.1%
Key (black)45.9%

Color previews

#8a0821 text on a black background

contrast 2.14:1

Card sample

#8a0821 text on a white background

contrast 9.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8a0821

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.

#8a0821 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#8a0821, answered

What color is #8a0821?

#8a0821 is a dark electric red, closest to Brown (ΔE2000 7.9). It sits at 349° on the hue wheel with 89% saturation and 29% lightness, which reads as warm.

What is the RGB value of #8a0821?

rgb(138, 8, 33) — 138 red, 8 green and 33 blue out of 255, or 54.1% / 3.1% / 12.9% by channel.

Is #8a0821 a light or a dark color?

It is a dark color. Relative luminance is 0.0569 and perceived brightness is 30%, so white text on it reaches 9.83:1.

Should I use black or white text on #8a0821?

White. It scores 9.83:1 against #8a0821, versus 2.14:1 for black — AAA at any size.

What is the complementary color of #8a0821?

#088A71 sits directly opposite on the wheel. Softer options are the split-complements #088A30 and #08628A, which give the same contrast with far less vibration.

What colors go well with #8a0821?

For interface work: #FAF4F5 as the surface, #EDC0C8 for borders, #9B4B5A for secondary text, #058D51 as an accent and #78071D for hover and pressed states. For a palette, the analogous pair #8A0862 and #8A3008 stays calm, while #088A71 is the loudest partner.

What is #8a0821 in CMYK for printing?

cmyk(0%, 94%, 76%, 46%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #8a0821 warm or cool?

Warm — it scores 23 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8A1F08; nudged cooler, #8B0751.

Work with #8a0821 in the Color Lab