#81271B#81271B

#81271B is a dark, vivid red. Relative luminance 0.062; OKLCH L 41.0% C 0.126 H 30.7°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#81271B
RGBrgb(129, 39, 27)
HSLhsl(7, 65%, 31%)
HSVhsv(7, 79%, 51%)
CMYKcmyk(0%, 69.8%, 79.1%, 49.4%)
CIE-LABlab(29.91, 37.99, 29.09)
CIE-LCHlch(29.91, 47.84, 37.44°)
OKLaboklab(41.03% 0.1084 0.0643)
OKLCHoklch(41.03% 0.126 30.7)
XYZxyz(9.9777, 6.1988, 1.7078)
Luminance0.0620 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81271B #1B7581
analogous
#811B42 #81271B #815A1B
triadic
#81271B #1B8127 #271B81
tetradic
#81271B #42811B #1B7581 #5A1B81
square
#81271B #42811B #1B7581 #5A1B81
split-complementary
#81271B #1B815A #1B4281
monochromatic
#1C0806 #4E1810 #81271B #B43626 #D7513F

Accessibility & contrast

On white

9.38
#81271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#81271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81271B
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81271B#FFFFFF#000000##FFFFFF
##81271B1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413A19
Deuteranopia (green-blind)
#574E18
Tritanopia (blue-blind)
#8E0B25
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #81271b;
/* rgb */ color: rgb(129, 39, 27);
/* oklch */ color: oklch(41.0% 0.126 30.7);
Tailwind
colors: {
  custom: {
    50: '#ad6758',
    500: '#81271b',
    950: '#000000',
  },
}
SCSS
$custom: #81271b;
$custom-light: #ad6758;
$custom-dark: #000000;
JSON
{
  "hex": "#81271b",
  "rgb": {
    "r": 129,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 7.059,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.41029,
    "c": 0.12606,
    "h": 30.7
  },
  "luminance": 0.06197
}

Semantic roles & 50–950 ramp

primary
#81271B
secondary
#43A7B5
accent
#D4E83F
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#120603
muted
#817A78

Preview Lab

Preview with #81271B

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

Preview Lab → · Contrast checker → · Palette generator →

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