#511312#511312

#511312 is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.4% C 0.092 H 25.7°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#511312
RGBrgb(81, 19, 18)
HSLhsl(1, 64%, 19%)
HSVhsv(1, 78%, 32%)
CMYKcmyk(0%, 76.5%, 77.8%, 68.2%)
CIE-LABlab(16.79, 28.65, 17.35)
CIE-LCHlch(16.79, 33.49, 31.19°)
OKLaboklab(29.37% 0.0833 0.04)
OKLCHoklch(29.37% 0.092 25.7)
XYZxyz(3.7358, 2.2593, 0.8115)
Luminance0.0226 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511312 #125051
analogous
#511231 #511312 #513312
triadic
#511312 #125113 #131251
tetradic
#511312 #315112 #125051 #331251
square
#511312 #315112 #125051 #331251
split-complementary
#511312 #125133 #123151
monochromatic
#190606 #1F0707 #511312 #831F1D #B52A28

Accessibility & contrast

On white

14.46
#511312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#511312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511312
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511312#FFFFFF#000000##FFFFFF
##5113121.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252111
Deuteranopia (green-blind)
#342E10
Tritanopia (blue-blind)
#5A0213
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #511312;
/* rgb */ color: rgb(81, 19, 18);
/* oklch */ color: oklch(29.4% 0.092 25.7);
Tailwind
colors: {
  custom: {
    50: '#885550',
    500: '#511312',
    950: '#000000',
  },
}
SCSS
$custom: #511312;
$custom-light: #885550;
$custom-dark: #000000;
JSON
{
  "hex": "#511312",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 18
  },
  "hsl": {
    "h": 0.952,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29373,
    "c": 0.0924,
    "h": 25.7
  },
  "luminance": 0.02259
}

Semantic roles & 50–950 ramp

primary
#511312
secondary
#35898A
accent
#E4E741
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0302
muted
#7D7878

Preview Lab

Preview with #511312

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

Preview Lab → · Contrast checker → · Palette generator →

#511312 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva