#511F12#511F12

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

Color values

HEX#511F12
RGBrgb(81, 31, 18)
HSLhsl(12, 64%, 19%)
HSVhsv(12, 78%, 32%)
CMYKcmyk(0%, 61.7%, 77.8%, 68.2%)
CIE-LABlab(19.11, 22.47, 20.12)
CIE-LCHlch(19.11, 30.16, 41.85°)
OKLaboklab(31.12% 0.064 0.0458)
OKLCHoklch(31.12% 0.079 35.6)
XYZxyz(3.9929, 2.7735, 0.8972)
Luminance0.0277 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F12 #124451
analogous
#511225 #511F12 #513F12
triadic
#511F12 #12511F #1F1251
tetradic
#511F12 #255112 #124451 #3F1251
square
#511F12 #255112 #124451 #3F1251
split-complementary
#511F12 #12513F #122551
monochromatic
#190A06 #1F0C07 #511F12 #83321D #B54528

Accessibility & contrast

On white

13.51
#511F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#511F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F12
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F12#FFFFFF#000000##FFFFFF
##511F121.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2810
Deuteranopia (green-blind)
#393311
Tritanopia (blue-blind)
#5A141C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #511f12;
/* rgb */ color: rgb(81, 31, 18);
/* oklch */ color: oklch(31.1% 0.079 35.6);
Tailwind
colors: {
  custom: {
    50: '#875c50',
    500: '#511f12',
    950: '#000000',
  },
}
SCSS
$custom: #511f12;
$custom-light: #875c50;
$custom-dark: #000000;
JSON
{
  "hex": "#511f12",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 18
  },
  "hsl": {
    "h": 12.381,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.3112,
    "c": 0.07868,
    "h": 35.6
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#511F12
secondary
#35788A
accent
#C5E741
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0402
muted
#7D7978

Preview Lab

Preview with #511F12

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

Preview Lab → · Contrast checker → · Palette generator →

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