#512136#512136

#512136 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.4% C 0.077 H 354.8°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#512136
RGBrgb(81, 33, 54)
HSLhsl(334, 42%, 22%)
HSVhsv(334, 59%, 32%)
CMYKcmyk(0%, 59.3%, 33.3%, 68.2%)
CIE-LABlab(20.45, 25.12, -2.77)
CIE-LCHlch(20.45, 25.27, 353.71°)
OKLaboklab(32.42% 0.0762 -0.007)
OKLCHoklch(32.42% 0.077 354.8)
XYZxyz(4.6032, 3.1038, 3.8460)
Luminance0.0310 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512136 #21513C
analogous
#51214E #512136 #512421
triadic
#512136 #365121 #213651
tetradic
#512136 #4E5121 #21513C #242151
square
#512136 #4E5121 #21513C #242151
split-complementary
#512136 #215124 #214E51
monochromatic
#16090E #260F19 #512136 #7C3353 #A84470

Accessibility & contrast

On white

12.96
#512136 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512136
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512136#FFFFFF#000000##FFFFFF
##5121361.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282C37
Deuteranopia (green-blind)
#343535
Tritanopia (blue-blind)
#571E29
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #512136;
/* rgb */ color: rgb(81, 33, 54);
/* oklch */ color: oklch(32.4% 0.077 354.8);
Tailwind
colors: {
  custom: {
    50: '#845e6c',
    500: '#512136',
    950: '#000000',
  },
}
SCSS
$custom: #512136;
$custom-light: #845e6c;
$custom-dark: #000000;
JSON
{
  "hex": "#512136",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 54
  },
  "hsl": {
    "h": 333.75,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32425,
    "c": 0.07656,
    "h": 354.8
  },
  "luminance": 0.03103
}

Semantic roles & 50–950 ramp

primary
#512136
secondary
#49856B
accent
#D29C56
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0407
muted
#7C797A

Preview Lab

Preview with #512136

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

Preview Lab → · Contrast checker → · Palette generator →

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