#511D17#511D17

#511D17 is a dark, moderate red. Relative luminance 0.027; OKLCH L 30.9% C 0.080 H 29.0°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#511D17
RGBrgb(81, 29, 23)
HSLhsl(6, 56%, 20%)
HSVhsv(6, 72%, 32%)
CMYKcmyk(0%, 64.2%, 71.6%, 68.2%)
CIE-LABlab(18.76, 23.92, 16.44)
CIE-LCHlch(18.76, 29.02, 34.50°)
OKLaboklab(30.88% 0.0696 0.0386)
OKLCHoklch(30.88% 0.08 29)
XYZxyz(3.9877, 2.6904, 1.1198)
Luminance0.0269 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D17 #174B51
analogous
#51172E #511D17 #513A17
triadic
#511D17 #17511D #1D1751
tetradic
#511D17 #2E5117 #174B51 #3A1751
square
#511D17 #2E5117 #174B51 #3A1751
split-complementary
#511D17 #17513A #172E51
monochromatic
#180907 #210C09 #511D17 #812E25 #B03F32

Accessibility & contrast

On white

13.65
#511D17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#511D17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D17
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D17#FFFFFF#000000##FFFFFF
##511D171.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2716
Deuteranopia (green-blind)
#373216
Tritanopia (blue-blind)
#59121C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #511d17;
/* rgb */ color: rgb(81, 29, 23);
/* oklch */ color: oklch(30.9% 0.080 29.0);
Tailwind
colors: {
  custom: {
    50: '#865b54',
    500: '#511d17',
    950: '#000000',
  },
}
SCSS
$custom: #511d17;
$custom-light: #865b54;
$custom-dark: #000000;
JSON
{
  "hex": "#511d17",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 23
  },
  "hsl": {
    "h": 6.207,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30877,
    "c": 0.07958,
    "h": 29
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#511D17
secondary
#3C8088
accent
#D0DF49
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0402
muted
#7D7978

Preview Lab

Preview with #511D17

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

Preview Lab → · Contrast checker → · Palette generator →

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