#81271C#81271C

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

Color values

HEX#81271C
RGBrgb(129, 39, 28)
HSLhsl(7, 64%, 31%)
HSVhsv(7, 78%, 51%)
CMYKcmyk(0%, 69.8%, 78.3%, 49.4%)
CIE-LABlab(29.92, 38.03, 28.51)
CIE-LCHlch(29.92, 47.53, 36.86°)
OKLaboklab(41.04% 0.1088 0.0634)
OKLCHoklch(41.04% 0.126 30.2)
XYZxyz(9.9895, 6.2035, 1.7698)
Luminance0.0620 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81271C #1C7681
analogous
#811C43 #81271C #81591C
triadic
#81271C #1C8127 #271C81
tetradic
#81271C #43811C #1C7681 #591C81
square
#81271C #43811C #1C7681 #591C81
split-complementary
#81271C #1C8159 #1C4381
monochromatic
#1C0906 #4F1811 #81271C #B33627 #D65242

Accessibility & contrast

On white

9.37
#81271C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #81271C
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81271C#FFFFFF#000000##FFFFFF
##81271C1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #81271c;
/* rgb */ color: rgb(129, 39, 28);
/* oklch */ color: oklch(41.0% 0.126 30.2);
Tailwind
colors: {
  custom: {
    50: '#ad6759',
    500: '#81271c',
    950: '#000000',
  },
}
SCSS
$custom: #81271c;
$custom-light: #ad6759;
$custom-dark: #000000;
JSON
{
  "hex": "#81271c",
  "rgb": {
    "r": 129,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 6.535,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.41041,
    "c": 0.12587,
    "h": 30.2
  },
  "luminance": 0.06202
}

Semantic roles & 50–950 ramp

primary
#81271C
secondary
#44A8B4
accent
#D5E740
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#120603
muted
#817A78

Preview Lab

Preview with #81271C

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

Preview Lab → · Contrast checker → · Palette generator →

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