#511B17#511B17

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

Color values

HEX#511B17
RGBrgb(81, 27, 23)
HSLhsl(4, 56%, 20%)
HSVhsv(4, 72%, 32%)
CMYKcmyk(0%, 66.7%, 71.6%, 68.2%)
CIE-LABlab(18.35, 25.01, 15.93)
CIE-LCHlch(18.35, 29.65, 32.50°)
OKLaboklab(30.57% 0.073 0.0375)
OKLCHoklch(30.57% 0.082 27.2)
XYZxyz(3.9403, 2.5956, 1.1040)
Luminance0.0260 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B17 #174D51
analogous
#511730 #511B17 #513817
triadic
#511B17 #17511B #1B1751
tetradic
#511B17 #305117 #174D51 #381751
square
#511B17 #305117 #174D51 #381751
split-complementary
#511B17 #175138 #173051
monochromatic
#180807 #210B09 #511B17 #812B25 #B03B32

Accessibility & contrast

On white

13.82
#511B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B17
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B17#FFFFFF#000000##FFFFFF
##511B171.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292516
Deuteranopia (green-blind)
#373116
Tritanopia (blue-blind)
#59101A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #511b17;
/* rgb */ color: rgb(81, 27, 23);
/* oklch */ color: oklch(30.6% 0.082 27.2);
Tailwind
colors: {
  custom: {
    50: '#875a54',
    500: '#511b17',
    950: '#000000',
  },
}
SCSS
$custom: #511b17;
$custom-light: #875a54;
$custom-dark: #000000;
JSON
{
  "hex": "#511b17",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 23
  },
  "hsl": {
    "h": 4.138,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30565,
    "c": 0.08206,
    "h": 27.2
  },
  "luminance": 0.02595
}

Semantic roles & 50–950 ramp

primary
#511B17
secondary
#3C8388
accent
#D5DF49
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0402
muted
#7D7978

Preview Lab

Preview with #511B17

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

Preview Lab → · Contrast checker → · Palette generator →

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