#51271A#51271A

#51271A is a dark, moderate red. Relative luminance 0.033; OKLCH L 32.7% C 0.067 H 37.9°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#51271A
RGBrgb(81, 39, 26)
HSLhsl(14, 51%, 21%)
HSVhsv(14, 68%, 32%)
CMYKcmyk(0%, 51.9%, 67.9%, 68.2%)
CIE-LABlab(21.11, 18.26, 17.33)
CIE-LCHlch(21.11, 25.18, 43.50°)
OKLaboklab(32.68% 0.0527 0.0411)
OKLCHoklch(32.68% 0.067 37.9)
XYZxyz(4.3057, 3.2754, 1.3826)
Luminance0.0328 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51271A #1A4451
analogous
#511A28 #51271A #51421A
triadic
#51271A #1A5127 #271A51
tetradic
#51271A #28511A #1A4451 #421A51
square
#51271A #28511A #1A4451 #421A51
split-complementary
#51271A #1A5142 #1A2851
monochromatic
#170B07 #23110B #51271A #7F3D29 #AE5438

Accessibility & contrast

On white

12.69
#51271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#51271A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51271A
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51271A#FFFFFF#000000##FFFFFF
##51271A1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322D19
Deuteranopia (green-blind)
#3C3619
Tritanopia (blue-blind)
#591F24
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #51271a;
/* rgb */ color: rgb(81, 39, 26);
/* oklch */ color: oklch(32.7% 0.067 37.9);
Tailwind
colors: {
  custom: {
    50: '#856256',
    500: '#51271a',
    950: '#000000',
  },
}
SCSS
$custom: #51271a;
$custom-light: #856256;
$custom-dark: #000000;
JSON
{
  "hex": "#51271a",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 14.182,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32683,
    "c": 0.06677,
    "h": 37.9
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#51271A
secondary
#407687
accent
#B9DB4D
background
#F8F5F5
surface
#F0EAE9
border
#CBC6C5
text
#0B0503
muted
#7C7978

Preview Lab

Preview with #51271A

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

Preview Lab → · Contrast checker → · Palette generator →

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