#51291C#51291C

#51291C is a dark, moderate red. Relative luminance 0.034; OKLCH L 33.1% C 0.064 H 38.7°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#51291C
RGBrgb(81, 41, 28)
HSLhsl(15, 49%, 21%)
HSVhsv(15, 65%, 32%)
CMYKcmyk(0%, 49.4%, 65.4%, 68.2%)
CIE-LABlab(21.65, 17.19, 16.69)
CIE-LCHlch(21.65, 23.96, 44.15°)
OKLaboklab(33.11% 0.0498 0.0398)
OKLCHoklch(33.11% 0.064 38.7)
XYZxyz(4.3962, 3.4195, 1.5269)
Luminance0.0342 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51291C #1C4451
analogous
#511C2A #51291C #51441C
triadic
#51291C #1C5129 #291C51
tetradic
#51291C #2A511C #1C4451 #441C51
square
#51291C #2A511C #1C4451 #441C51
split-complementary
#51291C #1C5144 #1C2A51
monochromatic
#170C08 #24120C #51291C #7E402C #AC573B

Accessibility & contrast

On white

12.47
#51291C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#51291C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51291C
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51291C#FFFFFF#000000##FFFFFF
##51291C1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332F1B
Deuteranopia (green-blind)
#3D371B
Tritanopia (blue-blind)
#592226
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51291c;
/* rgb */ color: rgb(81, 41, 28);
/* oklch */ color: oklch(33.1% 0.064 38.7);
Tailwind
colors: {
  custom: {
    50: '#856358',
    500: '#51291c',
    950: '#000000',
  },
}
SCSS
$custom: #51291c;
$custom-light: #856358;
$custom-dark: #000000;
JSON
{
  "hex": "#51291c",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 28
  },
  "hsl": {
    "h": 14.717,
    "s": 48.624,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33105,
    "c": 0.06374,
    "h": 38.7
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#51291C
secondary
#427687
accent
#B7D850
background
#F8F5F5
surface
#F0EAE9
border
#CBC6C5
text
#0B0503
muted
#7C7978

Preview Lab

Preview with #51291C

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

Preview Lab → · Contrast checker → · Palette generator →

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