#512418#512418

#512418 is a dark, moderate red. Relative luminance 0.031; OKLCH L 32.1% C 0.071 H 35.9°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#512418
RGBrgb(81, 36, 24)
HSLhsl(13, 54%, 21%)
HSVhsv(13, 70%, 32%)
CMYKcmyk(0%, 55.6%, 70.4%, 68.2%)
CIE-LABlab(20.35, 19.93, 17.71)
CIE-LCHlch(20.35, 26.66, 41.62°)
OKLaboklab(32.09% 0.0574 0.0416)
OKLCHoklch(32.09% 0.071 35.9)
XYZxyz(4.1894, 3.0775, 1.2374)
Luminance0.0308 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512418 #184551
analogous
#511828 #512418 #514018
triadic
#512418 #185124 #241851
tetradic
#512418 #285118 #184551 #401851
square
#512418 #285118 #184551 #401851
split-complementary
#512418 #185140 #182851
monochromatic
#180A07 #220F0A #512418 #803926 #AF4E34

Accessibility & contrast

On white

13.00
#512418 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#512418 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512418
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512418#FFFFFF#000000##FFFFFF
##5124181.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302B17
Deuteranopia (green-blind)
#3B3517
Tritanopia (blue-blind)
#591C21
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #512418;
/* rgb */ color: rgb(81, 36, 24);
/* oklch */ color: oklch(32.1% 0.071 35.9);
Tailwind
colors: {
  custom: {
    50: '#866055',
    500: '#512418',
    950: '#000000',
  },
}
SCSS
$custom: #512418;
$custom-light: #866055;
$custom-dark: #000000;
JSON
{
  "hex": "#512418",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 24
  },
  "hsl": {
    "h": 12.632,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.3209,
    "c": 0.0709,
    "h": 35.9
  },
  "luminance": 0.03077
}

Semantic roles & 50–950 ramp

primary
#512418
secondary
#3D7888
accent
#BFDE4A
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0503
muted
#7D7978

Preview Lab

Preview with #512418

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

Preview Lab → · Contrast checker → · Palette generator →

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