#512A2F#512A2F

#512A2F is a dark, muted red. Relative luminance 0.036; OKLCH L 33.8% C 0.058 H 12.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#512A2F
RGBrgb(81, 42, 47)
HSLhsl(352, 32%, 24%)
HSVhsv(352, 48%, 32%)
CMYKcmyk(0%, 48.1%, 42%, 68.2%)
CIE-LABlab(22.34, 18.71, 4.80)
CIE-LCHlch(22.34, 19.31, 14.38°)
OKLaboklab(33.77% 0.0567 0.0125)
OKLCHoklch(33.77% 0.058 12.5)
XYZxyz(4.7346, 3.6109, 3.1364)
Luminance0.0361 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512A2F #2A514C
analogous
#512A43 #512A2F #51392A
triadic
#512A2F #2F512A #2A2F51
tetradic
#512A2F #43512A #2A514C #392A51
square
#512A2F #43512A #2A514C #392A51
split-complementary
#512A2F #2A5139 #2A4351
monochromatic
#140A0C #291518 #512A2F #793F46 #A2545E

Accessibility & contrast

On white

12.20
#512A2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#512A2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512A2F
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512A2F#FFFFFF#000000##FFFFFF
##512A2F1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31312F
Deuteranopia (green-blind)
#3B382E
Tritanopia (blue-blind)
#58262C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #512a2f;
/* rgb */ color: rgb(81, 42, 47);
/* oklch */ color: oklch(33.8% 0.058 12.5);
Tailwind
colors: {
  custom: {
    50: '#846467',
    500: '#512a2f',
    950: '#000000',
  },
}
SCSS
$custom: #512a2f;
$custom-light: #846467;
$custom-dark: #000000;
JSON
{
  "hex": "#512a2f",
  "rgb": {
    "r": 81,
    "g": 42,
    "b": 47
  },
  "hsl": {
    "h": 352.308,
    "s": 31.707,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33774,
    "c": 0.05807,
    "h": 12.5
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#512A2F
secondary
#54837D
accent
#C8BB60
background
#F8F6F6
surface
#EFEBEB
border
#CAC6C6
text
#0B0506
muted
#7C7A7A

Preview Lab

Preview with #512A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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