#512336#512336

#512336 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 32.8% C 0.073 H 355.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#512336
RGBrgb(81, 35, 54)
HSLhsl(335, 40%, 23%)
HSVhsv(335, 57%, 32%)
CMYKcmyk(0%, 56.8%, 33.3%, 68.2%)
CIE-LABlab(20.90, 23.97, -2.11)
CIE-LCHlch(20.90, 24.06, 354.96°)
OKLaboklab(32.76% 0.0727 -0.0053)
OKLCHoklch(32.76% 0.073 355.9)
XYZxyz(4.6604, 3.2182, 3.8650)
Luminance0.0322 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512336 #23513E
analogous
#51234D #512336 #512723
triadic
#512336 #365123 #233651
tetradic
#512336 #4D5123 #23513E #272351
square
#512336 #4D5123 #23513E #272351
split-complementary
#512336 #235127 #234D51
monochromatic
#15090E #26111A #512336 #7C3552 #A6486F

Accessibility & contrast

On white

12.78
#512336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#512336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512336
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512336#FFFFFF#000000##FFFFFF
##5123361.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2D37
Deuteranopia (green-blind)
#363535
Tritanopia (blue-blind)
#57202A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #512336;
/* rgb */ color: rgb(81, 35, 54);
/* oklch */ color: oklch(32.8% 0.073 355.9);
Tailwind
colors: {
  custom: {
    50: '#84606c',
    500: '#512336',
    950: '#000000',
  },
}
SCSS
$custom: #512336;
$custom-light: #84606c;
$custom-dark: #000000;
JSON
{
  "hex": "#512336",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 54
  },
  "hsl": {
    "h": 335.217,
    "s": 39.655,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32757,
    "c": 0.07288,
    "h": 355.9
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#512336
secondary
#4B856D
accent
#D09E58
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0507
muted
#7C797A

Preview Lab

Preview with #512336

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

Preview Lab → · Contrast checker → · Palette generator →

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