#8A271D#8A271D

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

Color values

HEX#8A271D
RGBrgb(138, 39, 29)
HSLhsl(6, 65%, 33%)
HSVhsv(6, 79%, 54%)
CMYKcmyk(0%, 71.7%, 79%, 45.9%)
CIE-LABlab(31.68, 41.27, 30.33)
CIE-LCHlch(31.68, 51.22, 36.31°)
OKLaboklab(42.69% 0.1181 0.0669)
OKLCHoklch(42.69% 0.136 29.5)
XYZxyz(11.4298, 6.9447, 1.9008)
Luminance0.0694 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A271D #1D808A
analogous
#8A1D49 #8A271D #8A5E1D
triadic
#8A271D #1D8A27 #271D8A
tetradic
#8A271D #498A1D #1D808A #5E1D8A
square
#8A271D #498A1D #1D808A #5E1D8A
split-complementary
#8A271D #1D8A5E #1D498A
monochromatic
#250A08 #571912 #8A271D #BD3528 #D95649

Accessibility & contrast

On white

8.79
#8A271D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A271D
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A271D#FFFFFF#000000##FFFFFF
##8A271D1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443D1B
Deuteranopia (green-blind)
#5C5219
Tritanopia (blue-blind)
#980326
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #8a271d;
/* rgb */ color: rgb(138, 39, 29);
/* oklch */ color: oklch(42.7% 0.136 29.5);
Tailwind
colors: {
  custom: {
    50: '#b4685a',
    500: '#8a271d',
    950: '#000000',
  },
}
SCSS
$custom: #8a271d;
$custom-light: #b4685a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a271d",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 29
  },
  "hsl": {
    "h": 5.505,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42686,
    "c": 0.13569,
    "h": 29.5
  },
  "luminance": 0.06943
}

Semantic roles & 50–950 ramp

primary
#8A271D
secondary
#48B0BB
accent
#D9E840
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#120603
muted
#817A78

Preview Lab

Preview with #8A271D

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

Preview Lab → · Contrast checker → · Palette generator →

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