#511A1B#511A1B

#511A1B is a dark, moderate red. Relative luminance 0.026; OKLCH L 30.5% C 0.083 H 22.3°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#511A1B
RGBrgb(81, 26, 27)
HSLhsl(359, 51%, 21%)
HSVhsv(359, 68%, 32%)
CMYKcmyk(0%, 67.9%, 66.7%, 68.2%)
CIE-LABlab(18.22, 25.84, 13.02)
CIE-LCHlch(18.22, 28.93, 26.74°)
OKLaboklab(30.5% 0.0765 0.0314)
OKLCHoklch(30.5% 0.083 22.3)
XYZxyz(3.9609, 2.5678, 1.3238)
Luminance0.0257 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A1B #1A5150
analogous
#511A36 #511A1B #51341A
triadic
#511A1B #1B511A #1A1B51
tetradic
#511A1B #36511A #1A5150 #341A51
square
#511A1B #36511A #1A5150 #341A51
split-complementary
#511A1B #1A5134 #1A3651
monochromatic
#170708 #230B0C #511A1B #7F292A #AE383A

Accessibility & contrast

On white

13.88
#511A1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#511A1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A1B
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A1B#FFFFFF#000000##FFFFFF
##511A1B1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28251B
Deuteranopia (green-blind)
#36311A
Tritanopia (blue-blind)
#590F1B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #511a1b;
/* rgb */ color: rgb(81, 26, 27);
/* oklch */ color: oklch(30.5% 0.083 22.3);
Tailwind
colors: {
  custom: {
    50: '#865957',
    500: '#511a1b',
    950: '#000000',
  },
}
SCSS
$custom: #511a1b;
$custom-light: #865957;
$custom-dark: #000000;
JSON
{
  "hex": "#511a1b",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 27
  },
  "hsl": {
    "h": 358.909,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30497,
    "c": 0.08267,
    "h": 22.3
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

primary
#511A1B
secondary
#408786
accent
#DBD84D
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0403
muted
#7D7978

Preview Lab

Preview with #511A1B

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

Preview Lab → · Contrast checker → · Palette generator →

#511A1B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva