#511B1B#511B1B

#511B1B is a dark, moderate red. Relative luminance 0.026; OKLCH L 30.6% C 0.081 H 23.2°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#511B1B
RGBrgb(81, 27, 27)
HSLhsl(0, 50%, 21%)
HSVhsv(0, 67%, 32%)
CMYKcmyk(0%, 66.7%, 66.7%, 68.2%)
CIE-LABlab(18.42, 25.31, 13.27)
CIE-LCHlch(18.42, 28.58, 27.67°)
OKLaboklab(30.65% 0.0748 0.032)
OKLCHoklch(30.65% 0.081 23.2)
XYZxyz(3.9835, 2.6128, 1.3313)
Luminance0.0261 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B1B #1B5151
analogous
#511B36 #511B1B #51361B
triadic
#511B1B #1B511B #1B1B51
tetradic
#511B1B #36511B #1B5151 #361B51
square
#511B1B #36511B #1B5151 #361B51
split-complementary
#511B1B #1B5136 #1B3651
monochromatic
#170808 #230C0C #511B1B #7F2A2A #AD3A3A

Accessibility & contrast

On white

13.79
#511B1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#511B1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B1B
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B1B#FFFFFF#000000##FFFFFF
##511B1B1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29261B
Deuteranopia (green-blind)
#36311A
Tritanopia (blue-blind)
#59101C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #511b1b;
/* rgb */ color: rgb(81, 27, 27);
/* oklch */ color: oklch(30.6% 0.081 23.2);
Tailwind
colors: {
  custom: {
    50: '#865a57',
    500: '#511b1b',
    950: '#000000',
  },
}
SCSS
$custom: #511b1b;
$custom-light: #865a57;
$custom-dark: #000000;
JSON
{
  "hex": "#511b1b",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 27
  },
  "hsl": {
    "h": 0,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30647,
    "c": 0.08136,
    "h": 23.2
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#511B1B
secondary
#418787
accent
#DADA4E
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0403
muted
#7D7978

Preview Lab

Preview with #511B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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