#512E12#512E12

#512E12 is a dark, moderate orange. Relative luminance 0.037; OKLCH L 34.0% C 0.065 H 56.6°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#512E12
RGBrgb(81, 46, 18)
HSLhsl(27, 64%, 19%)
HSVhsv(27, 78%, 32%)
CMYKcmyk(0%, 43.2%, 77.8%, 68.2%)
CIE-LABlab(22.82, 13.29, 24.23)
CIE-LCHlch(22.82, 27.64, 61.25°)
OKLaboklab(33.96% 0.0361 0.0546)
OKLCHoklch(33.96% 0.065 56.6)
XYZxyz(4.4799, 3.7474, 1.0596)
Luminance0.0375 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512E12 #123551
analogous
#511216 #512E12 #514E12
triadic
#512E12 #12512E #2E1251
tetradic
#512E12 #165112 #123551 #4E1251
square
#512E12 #165112 #123551 #4E1251
split-complementary
#512E12 #12514E #121651
monochromatic
#190E06 #1F1207 #512E12 #834A1D #B56728

Accessibility & contrast

On white

12.00
#512E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#512E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512E12
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512E12#FFFFFF#000000##FFFFFF
##512E121.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38320F
Deuteranopia (green-blind)
#413A12
Tritanopia (blue-blind)
#592728
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #512e12;
/* rgb */ color: rgb(81, 46, 18);
/* oklch */ color: oklch(34.0% 0.065 56.6);
Tailwind
colors: {
  custom: {
    50: '#866751',
    500: '#512e12',
    950: '#000000',
  },
}
SCSS
$custom: #512e12;
$custom-light: #866751;
$custom-dark: #000000;
JSON
{
  "hex": "#512e12",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 18
  },
  "hsl": {
    "h": 26.667,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.33956,
    "c": 0.06546,
    "h": 56.6
  },
  "luminance": 0.03747
}

Semantic roles & 50–950 ramp

primary
#512E12
secondary
#35648A
accent
#9DE741
background
#F8F6F4
surface
#F0EBE7
border
#CBC6C3
text
#0C0602
muted
#7D7A78

Preview Lab

Preview with #512E12

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

Preview Lab → · Contrast checker → · Palette generator →

#512E12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva