#8A271B#8A271B

#8A271B is a dark, vivid red. Relative luminance 0.069; OKLCH L 42.7% C 0.136 H 30.4°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#8A271B
RGBrgb(138, 39, 27)
HSLhsl(6, 67%, 32%)
HSVhsv(6, 80%, 54%)
CMYKcmyk(0%, 71.7%, 80.4%, 45.9%)
CIE-LABlab(31.66, 41.20, 31.46)
CIE-LCHlch(31.66, 51.84, 37.37°)
OKLaboklab(42.66% 0.1174 0.0688)
OKLCHoklch(42.66% 0.136 30.4)
XYZxyz(11.4059, 6.9352, 1.7747)
Luminance0.0693 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A271B #1B7E8A
analogous
#8A1B47 #8A271B #8A5E1B
triadic
#8A271B #1B8A27 #271B8A
tetradic
#8A271B #478A1B #1B7E8A #5E1B8A
square
#8A271B #478A1B #1B7E8A #5E1B8A
split-complementary
#8A271B #1B8A5E #1B478A
monochromatic
#240A07 #571911 #8A271B #BD3525 #DB5545

Accessibility & contrast

On white

8.80
#8A271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#8A271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A271B
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A271B#FFFFFF#000000##FFFFFF
##8A271B1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443D19
Deuteranopia (green-blind)
#5D5217
Tritanopia (blue-blind)
#980225
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #8a271b;
/* rgb */ color: rgb(138, 39, 27);
/* oklch */ color: oklch(42.7% 0.136 30.4);
Tailwind
colors: {
  custom: {
    50: '#b46858',
    500: '#8a271b',
    950: '#000000',
  },
}
SCSS
$custom: #8a271b;
$custom-light: #b46858;
$custom-dark: #000000;
JSON
{
  "hex": "#8a271b",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 6.486,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42663,
    "c": 0.13606,
    "h": 30.4
  },
  "luminance": 0.06933
}

Semantic roles & 50–950 ramp

primary
#8A271B
secondary
#45AFBC
accent
#D8EA3E
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130603
muted
#827A78

Preview Lab

Preview with #8A271B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#8A271B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva