#871A31#871A31

#871A31 is a dark, vivid red. Relative luminance 0.061; OKLCH L 41.2% C 0.143 H 14.9°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#871A31
RGBrgb(135, 26, 49)
HSLhsl(347, 68%, 32%)
HSVhsv(347, 81%, 53%)
CMYKcmyk(0%, 80.7%, 63.7%, 47.1%)
CIE-LABlab(29.70, 46.08, 15.13)
CIE-LCHlch(29.70, 48.50, 18.18°)
OKLaboklab(41.2% 0.1382 0.0368)
OKLCHoklch(41.2% 0.143 14.9)
XYZxyz(10.9166, 6.1131, 3.5103)
Luminance0.0611 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A31 #1A8770
analogous
#871A68 #871A31 #87391A
triadic
#871A31 #31871A #1A3187
tetradic
#871A31 #68871A #1A8770 #391A87
square
#871A31 #68871A #1A8770 #391A87
split-complementary
#871A31 #1A8739 #1A6887
monochromatic
#20060C #54101E #871A31 #BA2444 #DA4161

Accessibility & contrast

On white

9.45
#871A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#871A31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A31
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A31#FFFFFF#000000##FFFFFF
##871A311.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393831
Deuteranopia (green-blind)
#554E2E
Tritanopia (blue-blind)
#940024
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #871a31;
/* rgb */ color: rgb(135, 26, 49);
/* oklch */ color: oklch(41.2% 0.143 14.9);
Tailwind
colors: {
  custom: {
    50: '#b16268',
    500: '#871a31',
    950: '#000000',
  },
}
SCSS
$custom: #871a31;
$custom-light: #b16268;
$custom-dark: #000000;
JSON
{
  "hex": "#871a31",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 49
  },
  "hsl": {
    "h": 347.339,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41202,
    "c": 0.143,
    "h": 14.9
  },
  "luminance": 0.06111
}

Semantic roles & 50–950 ramp

primary
#871A31
secondary
#42BAA1
accent
#EBC63D
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#120606
muted
#817A7A

Preview Lab

Preview with #871A31

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

Preview Lab → · Contrast checker → · Palette generator →

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