#512D0C#512D0C

#512D0C is a dark, moderate orange. Relative luminance 0.037; OKLCH L 33.7% C 0.069 H 58.8°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#512D0C
RGBrgb(81, 45, 12)
HSLhsl(29, 74%, 18%)
HSVhsv(29, 85%, 32%)
CMYKcmyk(0%, 44.4%, 85.2%, 68.2%)
CIE-LABlab(22.49, 13.61, 27.03)
CIE-LCHlch(22.49, 30.26, 63.28°)
OKLaboklab(33.68% 0.0359 0.0593)
OKLCHoklch(33.68% 0.069 58.8)
XYZxyz(4.3985, 3.6531, 0.8212)
Luminance0.0365 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512D0C #0C3051
analogous
#510C0D #512D0C #514F0C
triadic
#512D0C #0C512D #2D0C51
tetradic
#512D0C #0D510C #0C3051 #4F0C51
square
#512D0C #0D510C #0C3051 #4F0C51
split-complementary
#512D0C #0C514F #0C0D51
monochromatic
#1B0F04 #1C0F04 #512D0C #864B14 #BC681C

Accessibility & contrast

On white

12.13
#512D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#512D0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512D0C
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512D0C#FFFFFF#000000##FFFFFF
##512D0C1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383108
Deuteranopia (green-blind)
#40390C
Tritanopia (blue-blind)
#592526
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #512d0c;
/* rgb */ color: rgb(81, 45, 12);
/* oklch */ color: oklch(33.7% 0.069 58.8);
Tailwind
colors: {
  custom: {
    50: '#86664d',
    500: '#512d0c',
    950: '#000000',
  },
}
SCSS
$custom: #512d0c;
$custom-light: #86664d;
$custom-dark: #000000;
JSON
{
  "hex": "#512d0c",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 12
  },
  "hsl": {
    "h": 28.696,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.33683,
    "c": 0.06937,
    "h": 58.8
  },
  "luminance": 0.03653
}

Semantic roles & 50–950 ramp

primary
#512D0C
secondary
#2C5E8C
accent
#98F137
background
#F8F6F4
surface
#F0EBE7
border
#CBC6C3
text
#0C0601
muted
#7D7A77

Preview Lab

Preview with #512D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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