#87271B#87271B

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

Color values

HEX#87271B
RGBrgb(135, 39, 27)
HSLhsl(7, 67%, 32%)
HSVhsv(7, 80%, 53%)
CMYKcmyk(0%, 71.1%, 80%, 47.1%)
CIE-LABlab(31.07, 40.14, 30.67)
CIE-LCHlch(31.07, 50.52, 37.38°)
OKLaboklab(42.12% 0.1144 0.0673)
OKLCHoklch(42.12% 0.133 30.5)
XYZxyz(10.9163, 6.6827, 1.7518)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87271B #1B7B87
analogous
#871B45 #87271B #875D1B
triadic
#87271B #1B8727 #271B87
tetradic
#87271B #45871B #1B7B87 #5D1B87
square
#87271B #45871B #1B7B87 #5D1B87
split-complementary
#87271B #1B875D #1B4587
monochromatic
#210A07 #541811 #87271B #BA3625 #D95443

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##87271B#FFFFFF#000000##FFFFFF
##87271B1.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)
#433C19
Deuteranopia (green-blind)
#5B5117
Tritanopia (blue-blind)
#950525
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #87271b;
/* rgb */ color: rgb(135, 39, 27);
/* oklch */ color: oklch(42.1% 0.133 30.5);
Tailwind
colors: {
  custom: {
    50: '#b26758',
    500: '#87271b',
    950: '#000000',
  },
}
SCSS
$custom: #87271b;
$custom-light: #b26758;
$custom-dark: #000000;
JSON
{
  "hex": "#87271b",
  "rgb": {
    "r": 135,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 6.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42117,
    "c": 0.13276,
    "h": 30.5
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#87271B
secondary
#44ADBA
accent
#D7EA3E
background
#FBF6F5
surface
#F7EBE9
border
#D0C6C5
text
#120603
muted
#817A78

Preview Lab

Preview with #87271B

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

Preview Lab → · Contrast checker → · Palette generator →

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