#871F27#871F27

#871F27 is a dark, vivid red. Relative luminance 0.063; OKLCH L 41.4% C 0.139 H 21.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#871F27
RGBrgb(135, 31, 39)
HSLhsl(355, 63%, 33%)
HSVhsv(355, 77%, 53%)
CMYKcmyk(0%, 77%, 71.1%, 47.1%)
CIE-LABlab(30.11, 43.81, 22.20)
CIE-LCHlch(30.11, 49.11, 26.87°)
OKLaboklab(41.45% 0.1287 0.0516)
OKLCHoklch(41.45% 0.139 21.8)
XYZxyz(10.8491, 6.2790, 2.5598)
Luminance0.0628 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F27 #1F877F
analogous
#871F5B #871F27 #874B1F
triadic
#871F27 #27871F #1F2787
tetradic
#871F27 #5B871F #1F877F #4B1F87
square
#871F27 #5B871F #1F877F #4B1F87
split-complementary
#871F27 #1F874B #1F5B87
monochromatic
#23080A #551419 #871F27 #B92A35 #D64B55

Accessibility & contrast

On white

9.31
#871F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#871F27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F27
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F27#FFFFFF#000000##FFFFFF
##871F271.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3926
Deuteranopia (green-blind)
#574F24
Tritanopia (blue-blind)
#950023
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #871f27;
/* rgb */ color: rgb(135, 31, 39);
/* oklch */ color: oklch(41.4% 0.139 21.8);
Tailwind
colors: {
  custom: {
    50: '#b16461',
    500: '#871f27',
    950: '#000000',
  },
}
SCSS
$custom: #871f27;
$custom-light: #b16461;
$custom-dark: #000000;
JSON
{
  "hex": "#871f27",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 39
  },
  "hsl": {
    "h": 355.385,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.41446,
    "c": 0.13867,
    "h": 21.8
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#871F27
secondary
#4AB8B0
accent
#E6D942
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#120605
muted
#817A79

Preview Lab

Preview with #871F27

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

Preview Lab → · Contrast checker → · Palette generator →

#871F27 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva