#512812#512812

#512812 is a dark, moderate orange. Relative luminance 0.033; OKLCH L 32.7% C 0.070 H 47.1°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#512812
RGBrgb(81, 40, 18)
HSLhsl(21, 64%, 19%)
HSVhsv(21, 78%, 32%)
CMYKcmyk(0%, 50.6%, 77.8%, 68.2%)
CIE-LABlab(21.25, 17.07, 22.52)
CIE-LCHlch(21.25, 28.26, 52.84°)
OKLaboklab(32.75% 0.0474 0.051)
OKLCHoklch(32.75% 0.07 47.1)
XYZxyz(4.2617, 3.3111, 0.9868)
Luminance0.0331 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512812 #123B51
analogous
#51121C #512812 #514812
triadic
#512812 #125128 #281251
tetradic
#512812 #1C5112 #123B51 #481251
square
#512812 #1C5112 #123B51 #481251
split-complementary
#512812 #125148 #121C51
monochromatic
#190C06 #1F0F07 #512812 #83411D #B55928

Accessibility & contrast

On white

12.63
#512812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#512812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512812
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512812#FFFFFF#000000##FFFFFF
##5128121.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332D10
Deuteranopia (green-blind)
#3D3711
Tritanopia (blue-blind)
#592023
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #512812;
/* rgb */ color: rgb(81, 40, 18);
/* oklch */ color: oklch(32.7% 0.070 47.1);
Tailwind
colors: {
  custom: {
    50: '#866251',
    500: '#512812',
    950: '#000000',
  },
}
SCSS
$custom: #512812;
$custom-light: #866251;
$custom-dark: #000000;
JSON
{
  "hex": "#512812",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 18
  },
  "hsl": {
    "h": 20.952,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.32748,
    "c": 0.06964,
    "h": 47.1
  },
  "luminance": 0.03311
}

Semantic roles & 50–950 ramp

primary
#512812
secondary
#356C8A
accent
#ADE741
background
#F8F5F4
surface
#F0EAE7
border
#CBC6C3
text
#0C0502
muted
#7D7978

Preview Lab

Preview with #512812

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

Preview Lab → · Contrast checker → · Palette generator →

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