#87271C#87271C

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

Color values

HEX#87271C
RGBrgb(135, 39, 28)
HSLhsl(6, 66%, 32%)
HSVhsv(6, 79%, 53%)
CMYKcmyk(0%, 71.1%, 79.3%, 47.1%)
CIE-LABlab(31.08, 40.18, 30.10)
CIE-LCHlch(31.08, 50.20, 36.84°)
OKLaboklab(42.13% 0.1148 0.0664)
OKLCHoklch(42.13% 0.133 30)
XYZxyz(10.9280, 6.6874, 1.8138)
Luminance0.0669 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87271C #1C7C87
analogous
#871C47 #87271C #875D1C
triadic
#87271C #1C8727 #271C87
tetradic
#87271C #47871C #1C7C87 #5D1C87
square
#87271C #47871C #1C7C87 #5D1C87
split-complementary
#87271C #1C875D #1C4787
monochromatic
#220A07 #541811 #87271C #BA3627 #D85445

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##87271C#FFFFFF#000000##FFFFFF
##87271C1.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)
#433C1A
Deuteranopia (green-blind)
#5B5118
Tritanopia (blue-blind)
#950525
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #87271c;
/* rgb */ color: rgb(135, 39, 28);
/* oklch */ color: oklch(42.1% 0.133 30.0);
Tailwind
colors: {
  custom: {
    50: '#b26759',
    500: '#87271c',
    950: '#000000',
  },
}
SCSS
$custom: #87271c;
$custom-light: #b26759;
$custom-dark: #000000;
JSON
{
  "hex": "#87271c",
  "rgb": {
    "r": 135,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 6.168,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42129,
    "c": 0.13258,
    "h": 30
  },
  "luminance": 0.06686
}

Semantic roles & 50–950 ramp

primary
#87271C
secondary
#45AEBA
accent
#D7E93F
background
#FBF6F5
surface
#F7EBE9
border
#D0C6C5
text
#120603
muted
#817A78

Preview Lab

Preview with #87271C

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

Preview Lab → · Contrast checker → · Palette generator →

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