#87271F#87271F

#87271F is a dark, vivid red. Relative luminance 0.067; OKLCH L 42.2% C 0.132 H 28.7°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#87271F
RGBrgb(135, 39, 31)
HSLhsl(5, 63%, 33%)
HSVhsv(5, 77%, 53%)
CMYKcmyk(0%, 71.1%, 77%, 47.1%)
CIE-LABlab(31.12, 40.31, 28.36)
CIE-LCHlch(31.12, 49.28, 35.13°)
OKLaboklab(42.17% 0.1158 0.0634)
OKLCHoklch(42.17% 0.132 28.7)
XYZxyz(10.9657, 6.7025, 2.0124)
Luminance0.0670 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87271F #1F7F87
analogous
#871F4B #87271F #875B1F
triadic
#87271F #1F8727 #271F87
tetradic
#87271F #4B871F #1F7F87 #5B1F87
square
#87271F #4B871F #1F7F87 #5B1F87
split-complementary
#87271F #1F875B #1F4B87
monochromatic
#230A08 #551914 #87271F #B9352A #D6554B

Accessibility & contrast

On white

8.97
#87271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #87271F
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87271F#FFFFFF#000000##FFFFFF
##87271F1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433C1D
Deuteranopia (green-blind)
#5A511B
Tritanopia (blue-blind)
#950626
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #87271f;
/* rgb */ color: rgb(135, 39, 31);
/* oklch */ color: oklch(42.2% 0.132 28.7);
Tailwind
colors: {
  custom: {
    50: '#b1685b',
    500: '#87271f',
    950: '#000000',
  },
}
SCSS
$custom: #87271f;
$custom-light: #b1685b;
$custom-dark: #000000;
JSON
{
  "hex": "#87271f",
  "rgb": {
    "r": 135,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 4.615,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42166,
    "c": 0.13205,
    "h": 28.7
  },
  "luminance": 0.06701
}

Semantic roles & 50–950 ramp

primary
#87271F
secondary
#4AB0B8
accent
#D9E642
background
#FBF6F5
surface
#F7EBE9
border
#D0C6C5
text
#120604
muted
#817A79

Preview Lab

Preview with #87271F

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

Preview Lab → · Contrast checker → · Palette generator →

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