#81271A#81271A

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

Color values

HEX#81271A
RGBrgb(129, 39, 26)
HSLhsl(8, 66%, 30%)
HSVhsv(8, 80%, 51%)
CMYKcmyk(0%, 69.8%, 79.8%, 49.4%)
CIE-LABlab(29.90, 37.95, 29.66)
CIE-LCHlch(29.90, 48.16, 38.01°)
OKLaboklab(41.02% 0.1081 0.0653)
OKLCHoklch(41.02% 0.126 31.1)
XYZxyz(9.9664, 6.1942, 1.6479)
Luminance0.0619 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81271A #1A7481
analogous
#811A40 #81271A #815A1A
triadic
#81271A #1A8127 #271A81
tetradic
#81271A #40811A #1A7481 #5A1A81
square
#81271A #40811A #1A7481 #5A1A81
split-complementary
#81271A #1A815A #1A4081
monochromatic
#1B0805 #4E1810 #81271A #B43624 #D8513D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##81271A#FFFFFF#000000##FFFFFF
##81271A1.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)
#413A18
Deuteranopia (green-blind)
#574E16
Tritanopia (blue-blind)
#8E0B25
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #81271a;
/* rgb */ color: rgb(129, 39, 26);
/* oklch */ color: oklch(41.0% 0.126 31.1);
Tailwind
colors: {
  custom: {
    50: '#ad6757',
    500: '#81271a',
    950: '#000000',
  },
}
SCSS
$custom: #81271a;
$custom-light: #ad6757;
$custom-dark: #000000;
JSON
{
  "hex": "#81271a",
  "rgb": {
    "r": 129,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 7.573,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.41017,
    "c": 0.12626,
    "h": 31.1
  },
  "luminance": 0.06193
}

Semantic roles & 50–950 ramp

primary
#81271A
secondary
#42A6B5
accent
#D4E93E
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#120603
muted
#817A78

Preview Lab

Preview with #81271A

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

Preview Lab → · Contrast checker → · Palette generator →

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