#8C271F#8C271F

#8C271F is a dark, vivid red. Relative luminance 0.071; OKLCH L 43.1% C 0.138 H 28.7°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#8C271F
RGBrgb(140, 39, 31)
HSLhsl(4, 64%, 34%)
HSVhsv(4, 78%, 55%)
CMYKcmyk(0%, 72.1%, 77.9%, 45.1%)
CIE-LABlab(32.09, 42.05, 29.71)
CIE-LCHlch(32.09, 51.49, 35.24°)
OKLaboklab(43.08% 0.1207 0.066)
OKLCHoklch(43.08% 0.138 28.7)
XYZxyz(11.7894, 7.1272, 2.0510)
Luminance0.0712 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C271F #1F848C
analogous
#8C1F4D #8C271F #8C5D1F
triadic
#8C271F #1F8C27 #271F8C
tetradic
#8C271F #4D8C1F #1F848C #5D1F8C
square
#8C271F #4D8C1F #1F848C #5D1F8C
split-complementary
#8C271F #1F8C5D #1F4D8C
monochromatic
#280B09 #5A1914 #8C271F #BE352A #D8584E

Accessibility & contrast

On white

8.66
#8C271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#8C271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C271F
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C271F#FFFFFF#000000##FFFFFF
##8C271F1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443D1D
Deuteranopia (green-blind)
#5D541B
Tritanopia (blue-blind)
#9A0126
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #8c271f;
/* rgb */ color: rgb(140, 39, 31);
/* oklch */ color: oklch(43.1% 0.138 28.7);
Tailwind
colors: {
  custom: {
    50: '#b5685b',
    500: '#8c271f',
    950: '#000000',
  },
}
SCSS
$custom: #8c271f;
$custom-light: #b5685b;
$custom-dark: #000000;
JSON
{
  "hex": "#8c271f",
  "rgb": {
    "r": 140,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 4.404,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43075,
    "c": 0.13754,
    "h": 28.7
  },
  "luminance": 0.07125
}

Semantic roles & 50–950 ramp

primary
#8C271F
secondary
#4CB2BB
accent
#DBE741
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130704
muted
#827A79

Preview Lab

Preview with #8C271F

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

Preview Lab → · Contrast checker → · Palette generator →

#8C271F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva