#512018#512018

#512018 is a dark, moderate red. Relative luminance 0.028; OKLCH L 31.4% C 0.076 H 31.2°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#512018
RGBrgb(81, 32, 24)
HSLhsl(8, 54%, 21%)
HSVhsv(8, 70%, 32%)
CMYKcmyk(0%, 60.5%, 70.4%, 68.2%)
CIE-LABlab(19.43, 22.29, 16.58)
CIE-LCHlch(19.43, 27.78, 36.64°)
OKLaboklab(31.39% 0.0647 0.0391)
OKLCHoklch(31.39% 0.076 31.2)
XYZxyz(4.0751, 2.8488, 1.1993)
Luminance0.0285 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512018 #184951
analogous
#51182C #512018 #513C18
triadic
#512018 #185120 #201851
tetradic
#512018 #2C5118 #184951 #3C1851
square
#512018 #2C5118 #184951 #3C1851
split-complementary
#512018 #18513C #182C51
monochromatic
#180907 #220D0A #512018 #803326 #AF4534

Accessibility & contrast

On white

13.38
#512018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#512018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512018
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512018#FFFFFF#000000##FFFFFF
##5120181.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2817
Deuteranopia (green-blind)
#393317
Tritanopia (blue-blind)
#59171E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #512018;
/* rgb */ color: rgb(81, 32, 24);
/* oklch */ color: oklch(31.4% 0.076 31.2);
Tailwind
colors: {
  custom: {
    50: '#865d55',
    500: '#512018',
    950: '#000000',
  },
}
SCSS
$custom: #512018;
$custom-light: #865d55;
$custom-dark: #000000;
JSON
{
  "hex": "#512018",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 24
  },
  "hsl": {
    "h": 8.421,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31389,
    "c": 0.07562,
    "h": 31.2
  },
  "luminance": 0.02848
}

Semantic roles & 50–950 ramp

primary
#512018
secondary
#3D7D88
accent
#C9DE4A
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0403
muted
#7D7978

Preview Lab

Preview with #512018

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

Preview Lab → · Contrast checker → · Palette generator →

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