#511F17#511F17

#511F17 is a dark, moderate red. Relative luminance 0.028; OKLCH L 31.2% C 0.077 H 31.1°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#511F17
RGBrgb(81, 31, 23)
HSLhsl(8, 56%, 20%)
HSVhsv(8, 72%, 32%)
CMYKcmyk(0%, 61.7%, 71.6%, 68.2%)
CIE-LABlab(19.19, 22.79, 16.96)
CIE-LCHlch(19.19, 28.41, 36.66°)
OKLaboklab(31.2% 0.0661 0.0398)
OKLCHoklch(31.2% 0.077 31.1)
XYZxyz(4.0384, 2.7917, 1.1366)
Luminance0.0279 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F17 #174951
analogous
#51172C #511F17 #513C17
triadic
#511F17 #17511F #1F1751
tetradic
#511F17 #2C5117 #174951 #3C1751
square
#511F17 #2C5117 #174951 #3C1751
split-complementary
#511F17 #17513C #172C51
monochromatic
#180907 #210D09 #511F17 #813125 #B04332

Accessibility & contrast

On white

13.48
#511F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#511F17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F17
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F17#FFFFFF#000000##FFFFFF
##511F171.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2816
Deuteranopia (green-blind)
#383316
Tritanopia (blue-blind)
#59151D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511f17;
/* rgb */ color: rgb(81, 31, 23);
/* oklch */ color: oklch(31.2% 0.077 31.1);
Tailwind
colors: {
  custom: {
    50: '#865c54',
    500: '#511f17',
    950: '#000000',
  },
}
SCSS
$custom: #511f17;
$custom-light: #865c54;
$custom-dark: #000000;
JSON
{
  "hex": "#511f17",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 23
  },
  "hsl": {
    "h": 8.276,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31202,
    "c": 0.07713,
    "h": 31.1
  },
  "luminance": 0.02791
}

Semantic roles & 50–950 ramp

primary
#511F17
secondary
#3C7E88
accent
#CADF49
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0402
muted
#7D7978

Preview Lab

Preview with #511F17

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

Preview Lab → · Contrast checker → · Palette generator →

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