#512F40#512F40

#512F40 is a dark, muted pink. Relative luminance 0.042; OKLCH L 35.3% C 0.056 H 349.0°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#512F40
RGBrgb(81, 47, 64)
HSLhsl(330, 27%, 25%)
HSVhsv(330, 42%, 32%)
CMYKcmyk(0%, 42%, 21%, 68.2%)
CIE-LABlab(24.17, 18.30, -4.09)
CIE-LCHlch(24.17, 18.75, 347.41°)
OKLaboklab(35.35% 0.0545 -0.0106)
OKLCHoklch(35.35% 0.056 349)
XYZxyz(5.3353, 4.1529, 5.3701)
Luminance0.0415 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F40 #2F5140
analogous
#512F51 #512F40 #512F2F
triadic
#512F40 #40512F #2F4051
tetradic
#512F40 #51512F #2F5140 #2F2F51
square
#512F40 #51512F #2F5140 #2F2F51
split-complementary
#512F40 #2F512F #2F5151
monochromatic
#130B0F #2A1921 #512F40 #78455F #9E5C7D

Accessibility & contrast

On white

11.47
#512F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#512F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512F40
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F40#FFFFFF#000000##FFFFFF
##512F401.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323641
Deuteranopia (green-blind)
#3A3C3F
Tritanopia (blue-blind)
#562E35
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #512f40;
/* rgb */ color: rgb(81, 47, 64);
/* oklch */ color: oklch(35.3% 0.056 349.0);
Tailwind
colors: {
  custom: {
    50: '#836874',
    500: '#512f40',
    950: '#000000',
  },
}
SCSS
$custom: #512f40;
$custom-light: #836874;
$custom-dark: #000000;
JSON
{
  "hex": "#512f40",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 64
  },
  "hsl": {
    "h": 330,
    "s": 26.562,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35348,
    "c": 0.05552,
    "h": 349
  },
  "luminance": 0.04153
}

Semantic roles & 50–950 ramp

primary
#512F40
secondary
#59826E
accent
#C39465
background
#F8F6F7
surface
#EFEBED
border
#CAC6C8
text
#0A0608
muted
#7C7A7B

Preview Lab

Preview with #512F40

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

Preview Lab → · Contrast checker → · Palette generator →

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