#8A271A#8A271A

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

Color values

HEX#8A271A
RGBrgb(138, 39, 26)
HSLhsl(7, 68%, 32%)
HSVhsv(7, 81%, 54%)
CMYKcmyk(0%, 71.7%, 81.2%, 45.9%)
CIE-LABlab(31.65, 41.16, 32.02)
CIE-LCHlch(31.65, 52.15, 37.88°)
OKLaboklab(42.65% 0.1171 0.0697)
OKLCHoklch(42.65% 0.136 30.8)
XYZxyz(11.3945, 6.9306, 1.7148)
Luminance0.0693 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A271A #1A7D8A
analogous
#8A1A45 #8A271A #8A5F1A
triadic
#8A271A #1A8A27 #271A8A
tetradic
#8A271A #458A1A #1A7D8A #5F1A8A
square
#8A271A #458A1A #1A7D8A #5F1A8A
split-complementary
#8A271A #1A8A5F #1A458A
monochromatic
#230A07 #571810 #8A271A #BD3624 #DC5543

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A271A#FFFFFF#000000##FFFFFF
##8A271A1.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)
#443D18
Deuteranopia (green-blind)
#5D5216
Tritanopia (blue-blind)
#980225
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #8a271a;
/* rgb */ color: rgb(138, 39, 26);
/* oklch */ color: oklch(42.7% 0.136 30.8);
Tailwind
colors: {
  custom: {
    50: '#b46858',
    500: '#8a271a',
    950: '#000000',
  },
}
SCSS
$custom: #8a271a;
$custom-light: #b46858;
$custom-dark: #000000;
JSON
{
  "hex": "#8a271a",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 6.964,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42652,
    "c": 0.13623,
    "h": 30.8
  },
  "luminance": 0.06929
}

Semantic roles & 50–950 ramp

primary
#8A271A
secondary
#43AFBD
accent
#D7EB3D
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130603
muted
#827A78

Preview Lab

Preview with #8A271A

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

Preview Lab → · Contrast checker → · Palette generator →

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