#512F2F#512F2F

#512F2F is a dark, muted red. Relative luminance 0.040; OKLCH L 34.8% C 0.050 H 19.9°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#512F2F
RGBrgb(81, 47, 47)
HSLhsl(0, 27%, 25%)
HSVhsv(0, 42%, 32%)
CMYKcmyk(0%, 42%, 42%, 68.2%)
CIE-LABlab(23.63, 15.56, 6.62)
CIE-LCHlch(23.63, 16.90, 23.04°)
OKLaboklab(34.76% 0.0471 0.0171)
OKLCHoklch(34.76% 0.05 19.9)
XYZxyz(4.9232, 3.9880, 3.1992)
Luminance0.0399 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F2F #2F5151
analogous
#512F40 #512F2F #51402F
triadic
#512F2F #2F512F #2F2F51
tetradic
#512F2F #40512F #2F5151 #402F51
square
#512F2F #40512F #2F5151 #402F51
split-complementary
#512F2F #2F5140 #2F4051
monochromatic
#130B0B #2A1919 #512F2F #784545 #9E5C5C

Accessibility & contrast

On white

11.68
#512F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#512F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512F2F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F2F#FFFFFF#000000##FFFFFF
##512F2F1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36342F
Deuteranopia (green-blind)
#3E3B2E
Tritanopia (blue-blind)
#572B2F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #512f2f;
/* rgb */ color: rgb(81, 47, 47);
/* oklch */ color: oklch(34.8% 0.050 19.9);
Tailwind
colors: {
  custom: {
    50: '#836867',
    500: '#512f2f',
    950: '#000000',
  },
}
SCSS
$custom: #512f2f;
$custom-light: #836867;
$custom-dark: #000000;
JSON
{
  "hex": "#512f2f",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 47
  },
  "hsl": {
    "h": 0,
    "s": 26.562,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34759,
    "c": 0.05008,
    "h": 19.9
  },
  "luminance": 0.03988
}

Semantic roles & 50–950 ramp

primary
#512F2F
secondary
#598282
accent
#C3C365
background
#F8F6F6
surface
#EFEBEB
border
#CAC6C6
text
#0B0606
muted
#7C7A7A

Preview Lab

Preview with #512F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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