#87271A#87271A

#87271A is a dark, vivid red. Relative luminance 0.067; OKLCH L 42.1% C 0.133 H 30.9°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#87271A
RGBrgb(135, 39, 26)
HSLhsl(7, 68%, 32%)
HSVhsv(7, 81%, 53%)
CMYKcmyk(0%, 71.1%, 80.7%, 47.1%)
CIE-LABlab(31.06, 40.10, 31.23)
CIE-LCHlch(31.06, 50.83, 37.92°)
OKLaboklab(42.11% 0.1141 0.0682)
OKLCHoklch(42.11% 0.133 30.9)
XYZxyz(10.9049, 6.6782, 1.6919)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87271A #1A7A87
analogous
#871A44 #87271A #875E1A
triadic
#87271A #1A8727 #271A87
tetradic
#87271A #44871A #1A7A87 #5E1A87
square
#87271A #44871A #1A7A87 #5E1A87
split-complementary
#87271A #1A875E #1A4487
monochromatic
#200906 #541810 #87271A #BA3624 #DA5341

Accessibility & contrast

On white

8.99
#87271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#87271A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87271A
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87271A#FFFFFF#000000##FFFFFF
##87271A1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433C18
Deuteranopia (green-blind)
#5B5116
Tritanopia (blue-blind)
#950525
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #87271a;
/* rgb */ color: rgb(135, 39, 26);
/* oklch */ color: oklch(42.1% 0.133 30.9);
Tailwind
colors: {
  custom: {
    50: '#b26757',
    500: '#87271a',
    950: '#000000',
  },
}
SCSS
$custom: #87271a;
$custom-light: #b26757;
$custom-dark: #000000;
JSON
{
  "hex": "#87271a",
  "rgb": {
    "r": 135,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 7.156,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42106,
    "c": 0.13295,
    "h": 30.9
  },
  "luminance": 0.06677
}

Semantic roles & 50–950 ramp

primary
#87271A
secondary
#42ACBA
accent
#D6EB3D
background
#FBF6F5
surface
#F7EBE9
border
#D0C6C5
text
#120603
muted
#817A78

Preview Lab

Preview with #87271A

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

Preview Lab → · Contrast checker → · Palette generator →

#87271A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva