#512B18#512B18

#512B18 is a dark, moderate orange. Relative luminance 0.035; OKLCH L 33.4% C 0.064 H 46.3°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#512B18
RGBrgb(81, 43, 24)
HSLhsl(20, 54%, 21%)
HSVhsv(20, 70%, 32%)
CMYKcmyk(0%, 46.9%, 70.4%, 68.2%)
CIE-LABlab(22.10, 15.61, 19.80)
CIE-LCHlch(22.10, 25.22, 51.76°)
OKLaboklab(33.43% 0.0442 0.0462)
OKLCHoklch(33.43% 0.064 46.3)
XYZxyz(4.4224, 3.5435, 1.3150)
Luminance0.0354 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B18 #183E51
analogous
#511821 #512B18 #514718
triadic
#512B18 #18512B #2B1851
tetradic
#512B18 #215118 #183E51 #471851
square
#512B18 #215118 #183E51 #471851
split-complementary
#512B18 #185147 #182151
monochromatic
#180D07 #22120A #512B18 #804426 #AF5D34

Accessibility & contrast

On white

12.29
#512B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#512B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512B18
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512B18#FFFFFF#000000##FFFFFF
##512B181.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353016
Deuteranopia (green-blind)
#3E3818
Tritanopia (blue-blind)
#592427
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #512b18;
/* rgb */ color: rgb(81, 43, 24);
/* oklch */ color: oklch(33.4% 0.064 46.3);
Tailwind
colors: {
  custom: {
    50: '#856555',
    500: '#512b18',
    950: '#000000',
  },
}
SCSS
$custom: #512b18;
$custom-light: #856555;
$custom-dark: #000000;
JSON
{
  "hex": "#512b18",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 24
  },
  "hsl": {
    "h": 20,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33429,
    "c": 0.06392,
    "h": 46.3
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#512B18
secondary
#3D6F88
accent
#ACDE4A
background
#F8F6F4
surface
#F0EBE8
border
#CBC6C4
text
#0B0503
muted
#7C7A78

Preview Lab

Preview with #512B18

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

Preview Lab → · Contrast checker → · Palette generator →

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