#51271B#51271B

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

Color values

HEX#51271B
RGBrgb(81, 39, 27)
HSLhsl(13, 50%, 21%)
HSVhsv(13, 67%, 32%)
CMYKcmyk(0%, 51.9%, 66.7%, 68.2%)
CIE-LABlab(21.13, 18.34, 16.70)
CIE-LCHlch(21.13, 24.80, 42.31°)
OKLaboklab(32.7% 0.0531 0.0398)
OKLCHoklch(32.7% 0.066 36.8)
XYZxyz(4.3170, 3.2800, 1.4425)
Luminance0.0328 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51271B #1B4551
analogous
#511B2A #51271B #51421B
triadic
#51271B #1B5127 #271B51
tetradic
#51271B #2A511B #1B4551 #421B51
square
#51271B #2A511B #1B4551 #421B51
split-complementary
#51271B #1B5142 #1B2A51
monochromatic
#170B08 #23110C #51271B #7F3D2A #AD533A

Accessibility & contrast

On white

12.68
#51271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51271B
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51271B#FFFFFF#000000##FFFFFF
##51271B1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51271b;
/* rgb */ color: rgb(81, 39, 27);
/* oklch */ color: oklch(32.7% 0.066 36.8);
Tailwind
colors: {
  custom: {
    50: '#856257',
    500: '#51271b',
    950: '#000000',
  },
}
SCSS
$custom: #51271b;
$custom-light: #856257;
$custom-dark: #000000;
JSON
{
  "hex": "#51271b",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 13.333,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32702,
    "c": 0.06634,
    "h": 36.8
  },
  "luminance": 0.0328
}

Semantic roles & 50–950 ramp

primary
#51271B
secondary
#417787
accent
#BBDA4E
background
#F8F5F5
surface
#F0EAE9
border
#CBC6C5
text
#0B0503
muted
#7C7978

Preview Lab

Preview with #51271B

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

Preview Lab → · Contrast checker → · Palette generator →

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