#512232#512232

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

Color values

HEX#512232
RGBrgb(81, 34, 50)
HSLhsl(340, 41%, 23%)
HSVhsv(340, 58%, 32%)
CMYKcmyk(0%, 58%, 38.3%, 68.2%)
CIE-LABlab(20.53, 23.96, 0.13)
CIE-LCHlch(20.53, 23.96, 0.31°)
OKLaboklab(32.44% 0.0729 0.0006)
OKLCHoklch(32.44% 0.073 0.5)
XYZxyz(4.5413, 3.1241, 3.3808)
Luminance0.0312 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512232 #225141
analogous
#51224A #512232 #512922
triadic
#512232 #325122 #223251
tetradic
#512232 #4A5122 #225141 #292251
square
#512232 #4A5122 #225141 #292251
split-complementary
#512232 #225129 #224A51
monochromatic
#16090D #261017 #512232 #7C344D #A74667

Accessibility & contrast

On white

12.92
#512232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512232
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512232#FFFFFF#000000##FFFFFF
##5122321.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2C32
Deuteranopia (green-blind)
#363531
Tritanopia (blue-blind)
#571E28
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #512232;
/* rgb */ color: rgb(81, 34, 50);
/* oklch */ color: oklch(32.4% 0.073 0.5);
Tailwind
colors: {
  custom: {
    50: '#845f69',
    500: '#512232',
    950: '#000000',
  },
}
SCSS
$custom: #512232;
$custom-light: #845f69;
$custom-dark: #000000;
JSON
{
  "hex": "#512232",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 50
  },
  "hsl": {
    "h": 339.574,
    "s": 40.87,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32439,
    "c": 0.07287,
    "h": 0.5
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

primary
#512232
secondary
#4A8571
accent
#D1A757
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0506
muted
#7C797A

Preview Lab

Preview with #512232

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

Preview Lab → · Contrast checker → · Palette generator →

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