#512012#512012

#512012 is a dark, moderate red. Relative luminance 0.028; OKLCH L 31.3% C 0.078 H 36.7°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#512012
RGBrgb(81, 32, 18)
HSLhsl(13, 64%, 19%)
HSVhsv(13, 78%, 32%)
CMYKcmyk(0%, 60.5%, 77.8%, 68.2%)
CIE-LABlab(19.34, 21.89, 20.38)
CIE-LCHlch(19.34, 29.91, 42.95°)
OKLaboklab(31.29% 0.0622 0.0464)
OKLCHoklch(31.29% 0.078 36.7)
XYZxyz(4.0194, 2.8265, 0.9061)
Luminance0.0283 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512012 #124351
analogous
#511224 #512012 #514012
triadic
#512012 #125120 #201251
tetradic
#512012 #245112 #124351 #401251
square
#512012 #245112 #124351 #401251
split-complementary
#512012 #125140 #122451
monochromatic
#190A06 #1F0C07 #512012 #83341D #B54828

Accessibility & contrast

On white

13.42
#512012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#512012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512012
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512012#FFFFFF#000000##FFFFFF
##5120121.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512012;
/* rgb */ color: rgb(81, 32, 18);
/* oklch */ color: oklch(31.3% 0.078 36.7);
Tailwind
colors: {
  custom: {
    50: '#875d50',
    500: '#512012',
    950: '#000000',
  },
}
SCSS
$custom: #512012;
$custom-light: #875d50;
$custom-dark: #000000;
JSON
{
  "hex": "#512012",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 18
  },
  "hsl": {
    "h": 13.333,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31289,
    "c": 0.07757,
    "h": 36.7
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#512012
secondary
#35778A
accent
#C2E741
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0402
muted
#7D7978

Preview Lab

Preview with #512012

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

Preview Lab → · Contrast checker → · Palette generator →

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