#512331#512331

#512331 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 32.6% C 0.071 H 2.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#512331
RGBrgb(81, 35, 49)
HSLhsl(342, 40%, 23%)
HSVhsv(342, 57%, 32%)
CMYKcmyk(0%, 56.8%, 39.5%, 68.2%)
CIE-LABlab(20.73, 23.23, 1.10)
CIE-LCHlch(20.73, 23.26, 2.72°)
OKLaboklab(32.57% 0.0707 0.0032)
OKLCHoklch(32.57% 0.071 2.6)
XYZxyz(4.5490, 3.1736, 3.2781)
Luminance0.0317 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512331 #235143
analogous
#512348 #512331 #512C23
triadic
#512331 #315123 #233151
tetradic
#512331 #485123 #235143 #2C2351
square
#512331 #485123 #235143 #2C2351
split-complementary
#512331 #23512C #234851
monochromatic
#15090D #261117 #512331 #7C354B #A64865

Accessibility & contrast

On white

12.85
#512331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#512331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512331
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512331#FFFFFF#000000##FFFFFF
##5123311.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2C31
Deuteranopia (green-blind)
#373530
Tritanopia (blue-blind)
#581F28
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #512331;
/* rgb */ color: rgb(81, 35, 49);
/* oklch */ color: oklch(32.6% 0.071 2.6);
Tailwind
colors: {
  custom: {
    50: '#846068',
    500: '#512331',
    950: '#000000',
  },
}
SCSS
$custom: #512331;
$custom-light: #846068;
$custom-dark: #000000;
JSON
{
  "hex": "#512331",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 49
  },
  "hsl": {
    "h": 341.739,
    "s": 39.655,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32572,
    "c": 0.07072,
    "h": 2.6
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#512331
secondary
#4B8573
accent
#D0AB58
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0506
muted
#7C797A

Preview Lab

Preview with #512331

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

Preview Lab → · Contrast checker → · Palette generator →

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